PHP Apache ·þÎñ ¿ªÆô ÎÊÌâ
½ñÌìÔÚ¼ÒÀïÖØа²×°ÁËÒ»ÏÂPHP µ±ÈÃÒ²ÓÐApacheÁË¡£µ«ÊÇÎÒÓöµ½ÁËÒ»¸öÎÊÌ⣬¾ÍÊÇApache·þÎñÎÞ·¨¿ªÆô£¬ºó¹ûÔõÑùÎÒÏëºÜ¶àÈ˶¼ÊÇÖªµÀµÄ£¬µ±Ê±Ò²Ã»ÓжàÏ룬ÒÔΪÊÇ×Ô¼º°²×°µÄʱºò³öÏÖÁËʧÎó¾ÍÖØа²×°Ò»±é£¬¿ÉÊÇ»¹ÊÇÒ»ÑùÎÞ·¨´ò¿ª£¬È»ºóÎÒ¾ÍÔÚÏëÊÇʲôÎÊÌ⣬¶Ë¿ÚºÅ80.ÎҲ鿴ÁËһϣ¬·¢ÏÖûÓдíÎó°¡£¬Ë¼¿¼Á˺ܾ㬶ÔÍøÂçÒÔ¼°·À»ðǽҲ×öÁËÏàÓ¦µÄÐ޸ģ¬¿É»¹ÊDz»ÐУ¬ºóÀ´»³ÒÉÊDz»ÊÇ×Ô¼ºµÄϵͳÓÐÎÊÌâ°¡£¡¾ÍÔÚ˼¿¼ÊDz»ÊÇÒªÖØ×öϵͳµÄʱºò·¢ÏÖÁËÒ»¼þÊÂÇ飬ÎÒµçÄÔµÄѸÀ×ÊÇ´ò¿ªµÄ£¬ÏëÀ´¿ÉЦ£¬ÎÒÏëרҵµÄÈËÓ¦¸Ã¶¼ÖªµÀÒ»¼þÊÂÇ飬ÄǾÍÊÇѸÀ׵Ķ˿ںÅÒ»ÑùÒ²ÊÇ80£¬Ò²¾ÍÊÇ˵Èç¹ûÔÚ¿ªApache֮ǰѸÀ×¾ÍÒѾ¿ªµÄ»°£¬»á·¢Éú80³åÍ»£¬ºÇºÇ£¬µ±È»¾Í»á´ò²»¿ªApacheÁË£¬ËùÒÔÒ»¶¨Òª×¢ÒâÕâ¸öÎÊÌâ
Ïà¹ØÎĵµ£º
PHP½âÒÉ£¨2£©
1. magic_quotes_xxxµÄ×÷ÓÃ
magic_quotes_gpcΪonʱ,phpÔÚ×¢²á±äÁ¿Ê±»áµ÷ÓÃaddslashes()º¯Êý´¦Àí[¼ÈתÒåµ¥ÒýºÅ¡¢Ë«ÒýºÅ¡¢·´Ð±ÏߺÍnullbyte],µ«php.iniÖл¹ÓÐÁíÍâÒ»¸öÑ¡ÏîÓ°Ïì×Åmagic_quotes_gpcºÍaddslashes()º¯Êý:µ±php.iniÉèÖÃmagic_quotes_sybaseΪonʱ»á¸²¸Ç ......
//ÓÃÕâ¸öheaderÖ¸ÁîÀ´½â¾öURLÖØд²úÉúµÄ404 header
header('HTTP/1.1 200 OK');
// Ò³ÃæûÕÒµ½
header('HTTP/1.1 404 Not Found'); ......
phpÉú³ÉËæ»úµÄº¯ÊýÓÐrand()£¬mt_rand()¡£ÕâÁ©º¯Êý¶ÔÓ¦µÄÖÖ×Óº¯Êýsrand(),mt_srand()¡£
ÔÚphp 4.2.0֮ǰÔÚµ÷ÓÃËæ»úº¯Êý֮ǰµÃÏÈÉèÖÃÖÖ×Óº¯Êý£¬²»È»Éú³ÉµÄÊý¶¼ÊÇΨһµÄ¡£
È磺
4.2.0°æ±¾Ö®Ç°£º
<?
srand((double)microtime()*1000000); //²úÉúËæ»úÖÖ×Óseed
$randval = rand(0,100); //ÔÚ0ºÍ100Ö®¼äÈ¡Ò»¸ ......
´Ó¼Ü¹¹Éè¼Æ·½Ã濼ÂÇ£¬ºÜ¶àϵͳ²ÉÓÃÁË Java Bridge°ÑphpºÍJAVA¼¼Êõ½áºÏÆðÀ´£¬ÀûÓÃPHPµÄ¿ìËÙÏìÓ¦ºÍJAVAµÄÊý¾Ý³Ö¾Ã»¯ÄÜÁ¦£¬Äܴܺó³Ì¶ÈÉÏÄÜÌá¸ßϵͳÐÔÄÜ¡£ÕâÁ½ÆªÎÄÕ½«ÏêϸµÄ½éÉÜProject Zero¡¢WebSphere sMash ºÍ PHP µÄÕûºÏ¼¼Êõ
Project Zero¡¢WebSphere sMash ºÍ PHP ÈëÃÅ
http://www.ibm.com/developerworks/cn/web/wa- ......
ÔÚPHPÀïµÃµ½Ç°ÌìºÍ×òÌìµÄÈÕÆڵĴúÂëÇ°ÌìÈ¥ÃæÊÔµÄʱºòÒ²ÊÇÕâÑù,²»¹ýÎÒµ±Ê±¼Ç²»ÆðÀ´ÁË.¾Í¼ÇµÃMYSQLÀïÃæµÄdate_sub(now(),'interval 1 day');date('Y/m/d h:i:s',mktime(date('h'), date('i'), date('s'), date('m') , date('d')+1, date('Y'))); -------------------------------------------------------------------------- ......