PHP×ÔѧÈÕ¼Ç
--------------01-05--------------------
*
* Îļþ²Ù×÷
*
---------------------------------------
¶ÁÈ¡Õû¸öÎļþ: readfile(), fpassthru(), file()
¶Áȡһ¸ö×Ö·û: fgetc()
¶ÁÈ¡ÈÎÒⳤ¶È: fread()
²é¿´ÎļþÊÇ·ñ´æÔÚ: file_exists()
È·¶¨Îļþ´óС: filesize()
ɾ³ýÒ»¸öÎļþ: unlink()
ÔÚÎļþÖж¨Î»: rewind(), fseek(), ftell()
ÎļþËø¶¨: flock()
--------------01-05--------------------
*
* Êý×é²Ù×÷
*
---------------------------------------
Ö¸¶¨·¶Î§Êý×é: range()
Êý×éÖµ¸³¸ø±äÁ¿: list()
·µ»ØÊý×éÖе±Ç°µÄ¼ü/Öµ¶Ô²¢½«Êý×éÖ¸ÕëÏòÇ°ÒÆ¶¯Ò»²½: each()
½«Êý×éµÄÄÚ²¿Ö¸ÕëÖ¸ÏòµÚÒ»¸öµ¥Ôª: reset()
Êý×éÅÅÐò: sort(), asort(), ksort()
Êý×é·´ÏòÅÅÐò: rsort(), arsort(), krsort()
Êý×é×Ô¶¨ÒåÅÅÐò: usort()
Êý×éËæ»úÅÅÐò: shuffle()
·µ»ØÒ»¸öµ¥ÔªË³ÐòÏà·´µÄÊý×é: array_reverse()
Êý×éÖÐËæ»úÈ¡³öÒ»¸ö»ò¶à¸öµ¥Ôª: array_rand()
²¥ÏÂËæ»úÊý·¢ÉúÆ÷ÖÖ×Ó: srand() // Àý: srand((float) microtime() * 10000000);
·Ö¸î×Ö·û´®: explode()
ÔÚÊý×éÖÐä¯ÀÀ: each(), current(), reset(), end(), next(), pos(), prev()
¶ÔÊý×éµÄÿһ¸öÔªËØÓ¦ÓÃÈκκ¯Êý: array_walk()
ͳ¼ÆÊý×éÔªËØ¸öÊý: count(), sizeof(), array_count_values()
Êý×éת»»³É±êÁ¿±äÁ¿: extract()
½«»Øµ÷º¯Êý×÷Óõ½¸ø¶¨Êý×éµÄµ¥ÔªÉÏ: array_map()
--------------01-07--------------------
*
* ×Ö·û´®¸ñʽ»¯
*
---------------------------------------
×Ö·û´®´¦Àí: chop(), ltrim(), trim()
HTML¸ñʽ»¯: nl2br()
´òÓ¡¸ñʽ»¯×Ö·û´®: sprintf(), printf(), vprintf(), vsprintf()
ת³É´óд×Ö·û: strtoupper()
ת³ÉСд×Ö·û: strtolower()
Ê××Ö·ûΪ´óд: ucfirst()
ÿ¸öÊ××Ö·ûΪ´óд: ucwords()
¸ñʽ»¯×Ö·û´®ÒÔ±ã´æ´¢: addslashes(), stripslashes()
·Ö¸î×Ö·û´®: explode(), strtok()
Á¬½Ó×Ö·û´®: implode(), join()
½ØÈ¡×Ó×Ö·û´®: substr()
×Ö·û´®ÅÅÐò: strcmp(), strcasecmp(), strnatcmp()
×Ö·û´®³¤¶È: strlen()
×Ö·û´®ÖвéÕÒ×Ö·û´®: strstr(), strchr(), strrchr(), stristr()
²éÕÒ×Ó×Ö·û´®Î»ÖÃ: strpos(), strrpos()
Ìæ»»×Ó×Ö·û
Ïà¹ØÎĵµ£º
PHP»º´æ´úÂë
ºÃµÄÒ³Ãæ»º´æ´úÂ룬¿ÉÒÔ¼õÇáCPUºÍMYSQL¸ºµ£¡£Ê¹ÓÃǰ£¬ÏÈÔÚ¸ùĿ¼´´½¨“cache”Îļþ¼Ð£¬È»ºóÔËÐÐ1.php£¬µÚÒ»´ÎÔËÐк͵ڶþ´ÎÔËÐÐËٶȲîÒìºÜ´ó¡£»¶ÓÊìϤPHPµÄÅóÓÑʹÓúÍÌáÒâ¼û¡£
ʹÓ÷½·¨:(Çë±£´æÎªtemp.php)
<?php
include('arrcache.php');
$cache = new ArrCache('cache',5,'txt');
......
·¢±íÓÚ2008Äê10ÔÂ14ÈÕ
PHP»ù´¡£º±êǩʹÓãº
PHP´úÂë±ØÐë°üº¬ÔÚ <?PHP ºÍ ?>Ö®¼ä¡£
һЩÆäËûµÄ±êÇ©ÑùʽҲ¿ÉÒÔʹÓ㬱ÈÈç<?,<%,»òÕß<script language="php">(Js±êÇ©)¡£
ÆäËû±êÇ©¿ÉÒÔÊÇÓ㬵«Ö»ÓÐÔÚ<?php £¿>Ö®¼äµÄ½Å±¾²ÅÊÇ¿ÉÓõÄPHP´úÂë¡£
£¨¹ØÓÚlesson 23 µÄphp.iniÅäÖÃÎļþ£©
¿ªÊ ......
ÔÚÍøÕ¾ÐèÒª½¨Á¢¹²Ïí½Ó¿ÚµÄʱºò£¬¿ÉÒÔʹÓÃsoap¡£ ÏÂÃæ½éÉÜÏÂÔÚPHPÖÐÈçºÎʹÓÃSOAPµÄÍêÕû¹ý³Ì¡£
1¡¢È·ÈÏPHP»·¾³ÊÇ·ñÖ§³Ösoap,¼ì²éphpÅäÖÃÎļþ£¬°Ñextension=php_soap.dllǰµÄ·ÖºÅ(;)È¥µô(windows);ÈôÊÇ×Ô¼º±àÒëÔò±àÒëʱ±ØÐë¼ÓÉÏ --enable-soapÑ¡Ïî¡£
2¡¢½¨Á¢soap·þÎñ¶Ë¡£ ÏÂÃæÍ¨¹ýʵÀýÀ´ËµÃ÷ÈçºÎ½¨Á¢·þÎñ¶Ë¡£
<?php
cla ......
JAVAÎļþ¶Áд±ØÐëҪעÒâ±àÂëÎÊÌâ
javaµÄÎļþд
Ö±½ÓʹÓÃFileWriter¼´¿É£¬µÚ¶þ¸ö²ÎÊýΪ׷¼ÓдÈ룬ĬÈÏÊǸ²¸Çд¡£Ð´Íê±ØÐëclose²Å»á±£´æÐ´ºÃµÄÄÚÈÝ¡£
ĬÈÏÇé¿öÈç¹ûûÓлáн¨Ò»¸öÎļþ
FileWriter fw = null;
try {
fw = new FileWriter("/data/updatetime.dat", true); // true×·¼ÓдÈë
fw.append ......
* ×÷Õß: laruence(http://www.laruence.com)
* ±¾ÎĵØÖ·: http://www.laruence.com/2008/04/16/118.html
* ×ªÔØÇë×¢Ã÷³ö´¦
´«Í³µÄB/S½á¹¹µÄÓ¦ÓóÌÐò£¬¶¼ÊDzÉÓÔ¿Í»§¶ËÀ”½áÊøÀ´ÊµÏÖ¿Í»§¶ËºÍ·þÎñÆ÷¶ËµÄÊý¾Ý½»»»¡£
±¾ÎĽ«Í¨¹ý½áºÏTicks(¿ÉÒԲο´ÎÒ ......