Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÈçºÎÌá¸ßPHPЧÂÊÓÅ»¯¡¾Ò»Ð©phpÄÚÖú¯ÊýµÄÃîÓá¿


[תÌù] Õ¥¸É PHP,²»µÃ²»×ªµÄһƪPHPʹÓü¼ÇÉ!
ÕâƪÔÓÎÄ·­ÒëÕûÀí×ÔÍøÂç¸÷·Îĵµ×ÊÁÏ(¼û×îÄ©µÄ²Î¿¼×ÊÁÏ)£¬ÓÈÆäÊÇ Ilia Alshanetsky (Åå·þÖ®ÖÁ) ÔÚ¶à¸ö PHP »áÒéÉϵÄÑݽ²£¬Ö÷ÒªÊǸ÷ÀàÌá¸ß PHP ÐÔÄܵļ¼ÇÉ¡£ÎªÇó¾«×¼£¬ºÜ¶à²¿·Ö¶¼ÓÐÏêϸµÄЧÂÊÊý¾Ý£¬ÒÔ¼°¶ÔÓ¦µÄ°æ±¾µÈµÈ¡£ÍµÀÁ£¬Êý¾Ý¾Í²»Ò»Ò»¸ø³öÁË£¬Ö±½Ó¸ø½áÂÛ£¬Èç¹ûÐèÒª¿´Ô­Îĵµ£¬Çëµ½ÎÄÄ©¡¸²Î¿¼×ÊÁÏ¡¹²¿·Ö¡£³ÈÉ«±êÌâΪÍƼö²¿·Ö¡£
========================================================
¾²Ì¬µ÷ÓõijÉÔ±Ò»¶¨Òª¶¨Òå³É static  (PHP5 ONLY)
ÌùÊ¿£ºPHP 5 ÒýÈëÁ˾²Ì¬³ÉÔ±µÄ¸ÅÄ×÷ÓÃºÍ PHP 4 µÄº¯ÊýÄÚ²¿¾²Ì¬±äÁ¿Ò»Ö£¬µ«Ç°ÕßÊÇ×÷ΪÀàµÄ³ÉÔ±À´Ê¹Ó᣾²Ì¬±äÁ¿ºÍ Ruby µÄÀà±äÁ¿(class variable)²î²»¶à£¬ËùÓÐÀàµÄʵÀý¹²Ïíͬһ¸ö¾²Ì¬±äÁ¿¡£
// PHP CODE Highliting for CU by dZ902
<?php
class foo {
    function bar() {
        echo 'foobar';
    }
}
$foo = new foo;
// instance way
$foo->bar();
// static way
foo::bar();
?>
¸´ÖÆ´úÂë
¾²Ì¬µØµ÷ÓÃ·Ç static ³ÉÔ±£¬Ð§ÂÊ»á±È¾²Ì¬µØµ÷Óà static ³ÉÔ±Âý 50-60%¡£Ö÷ÒªÊÇÒòΪǰÕß»á²úÉú E_STRICT ¾¯¸æ£¬ÄÚ²¿Ò²ÐèÒª×öת»»¡£
ʹÓÃÀà³£Á¿ (PHP5 ONLY)
ÌùÊ¿£ºPHP 5 й¦ÄÜ£¬ÀàËÆÓÚ C++ µÄ const¡£
ʹÓÃÀà³£Á¿µÄºÃ´¦ÊÇ£º
- ±àÒëʱ½âÎö£¬Ã»ÓжîÍ⿪Ïú
- ÔÓ´Õ±í¸üС£¬ËùÒÔÄÚ²¿²éÕÒ¸ü¿ì
- Àà³£Á¿½ö´æÔÚÓÚÌض¨¡¸ÃüÃû¿Õ¼ä¡¹£¬ËùÒÔÔÓ´ÕÃû¸ü¶Ì
- ´úÂë¸ü¸É¾»£¬Ê¹³ý´í¸ü·½±ã
£¨ÔÝʱ£©²»ÒªÊ¹Óà require/include_once
require/include_once ÿ´Î±»µ÷ÓõÄʱºò¶¼»á´ò¿ªÄ¿±êÎļþ£¡
- Èç¹ûÓþø¶Ô·¾¶µÄ»°£¬PHP 5.2/6.0 ²»´æÔÚÕâ¸öÎÊÌâ
- аæµÄ APC »º´æϵͳÒѾ­½â¾öÕâ¸öÎÊÌâ
Îļþ I/O Ôö¼Ó => ЧÂʽµµÍ
Èç¹ûÐèÒª£¬¿ÉÒÔ×ÔÐмì²éÎļþÊÇ·ñÒѱ» require/include¡£
²»Òªµ÷ÓúÁÎÞÒâÒåµÄº¯Êý
ÓжÔÓ¦µÄ³£Á¿µÄʱºò£¬²»ÒªÊ¹Óú¯Êý¡£
// PHP CODE Highliting for CU by dZ902
<?php
php_uname('s') == PHP_OS;
php_version() == PHP_VERSION;
php_sapi_name() == PHP_SAPI;
?>
¸´ÖÆ´úÂë
ËäȻʹÓò»¶à£¬µ«ÊÇЧÂÊÌáÉý´ó¸ÅÔÚ 3500% ×óÓÒ¡£
×î¿ìµÄ Win32


Ïà¹ØÎĵµ£º

phpÓëWebService½»»¥

WebService¼ò½é
Ò»£® ¸ÅÊö
Ä¿Ç°½øÐÐWeb ServiceͨÐÅÓÐÁ½ÖÖЭÒé±ê×¼£¬Ò»ÖÖÊÇXML-RPC£¬ÁíÍâÒ»ÖÖÊÇSOAP¡£
1.        XML-RPC±È½Ï¼òµ¥£¬³öÏÖʱ¼ä±È½ÏÔ磻
2.        SOAP±È½Ï¸´ÔÓ£¬Ö÷ÒªÊÇһЩÐèÒªÎȶ¨¡¢½¡×³¡¢°²È«²¢ÇÒ¸´ÔÓ½»»¥µÄʱºòʹÓá£
PHPÖм ......

phpÄ£°å×ܽá

“Ä£°åÕⶫÎ÷,Æäʵ×îÖØÒªµÄÊÇÊʺÏ×Ô¼ºµÄÏîÄ¿ÐèÇó,¶ø²»ÊÇÊʺÏ×Ô¼ºµÄÏ°¹ß.±ÈÈçÒ»¸öÆóÒµµÄÐû´«ÍøÕ¾,·ÃÎÊÁ¿²»´ó,¸üÐÂÁ¿Ò²²»´ó,ÓÃʲô¶¼Ò»Ñù,ÉõÖÁ²»ÓÃ,
Ö±½ÓPHP+HTMLд¿ÉÄÜËÙ¶È×î¿ì.Ҳûʲô²»¿É.µ«ÊÇÈç¹ûÊÇÒ»¸öÐÂÎÅϵͳ,»òÕßÊÇÄÚÈÝ·¢²¼ÏµÍ³.Á½ÕßÕâÑù,¾Í·Ç³£ÓбØÒªÓõ½Ä£°åÕâÒ»¼¼Êõ.ÒòΪËûÃǶ¼
ÓÐÒ»¸ö¹²Í¨µÄµØ·½,¾ÍÊÇÓÐÒ» ......

WinXP IIS 5.1 PHP 5.3 VC9.0 ÅäÖÃÏê½â

IISÉÏ°²×°PHP5.3µÄÍêÕû½Ì³Ì·½·¨(¼°5.3.0ÒÔºó°æ±¾µÄ·½·¨)
ÓÉÓÚPHP5.3µÄÈ«ÐÂÌØЧ¼°¸Ä½ø£¬Ô­ÓеÄisapi·½Ê½½âÎöPHP
½Å±¾ÒѾ­²»±»Ö§³Ö£¬PHP´Ó5.3
.0ÒÔºóµÄ°æ±¾¿ªÊ¼Ê¹ÓÃ΢ÈíµÄfastcgiģʽ£¬ÕâÊÇÒ»¸ö¸üÏȽøµÄ·½Ê½£¬ÔËÐÐËٶȸü¿ì£¬¸üÎȶ¨£¡
а汾
µÄPHP5.3ͨ¹ýÒÔÍùÀÏ·½·¨ÒѾ­²»ÄÜÔÚIISÉÏ°²×°ÁË£¬ÏÖÔÚ¸ø³öÔÚIISÉÏ°²×°PHP5.3ÒÔº ......

PHP UUIDµÄÉú³ÉÔ´Âë

ÏÖÔںöàµØ·½¶¼ÓÃUUID£¬±ÈÈçÊý¾Ý¿âµÄ¸ö×Ô¶¯µÄUUID
UUID½á¹¹ÈçÏ£¨¶¼ÎªÊ®Áù½øÖÆ×Ö·û£©
XXXXX
XXX£­XXXX£­XXXX£­XXXX£­XXXXXXXXXXX
Ñо¿ÆäÉú³ÉʵÏÖ¹ý³Ì²Å·¢ÏÖ£¬Ô­À´ÊÇÕâÑùµÄ
1¡¢ÌáÈ¡µ±Ç°Ê±ºòÖµºÍʱ¼ä´Á
2¡¢°ÑÕâÁ½¸öֵת»»³ÉÊ®Áù½øÖÆ
3¡¢È¡Ê±¼äÖµºÍʱ¼ä´ÁµÄÇ°5ºÍʱ¼äÖµµÄÇ°Áùλ
4¡¢Éú³ÉÒ»¸öÈýλµÄÊ®Áù½øÖÆ£¬Èý¸öËÄλµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ