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

PHP»ñȡʱ¼ä´íÎóµÄÐÞÕý·½·¨

PHP»ñȡʱ¼ä´íÎóµÄÐÞÕý·½·¨
   ½ñÌìÔËÐÐPHP³ÌÐòµÄʱºò£¬ºÜÆæ¹Ö£¬ÎªÊ²Ã´PHP»ñÈ¡µÄʱ¼ä±Èʵ¼Êʱ¼äÕûÕûÉÙÁË8Сʱ£¬ÒÔǰҲûעÒâÕâ¸öÎÊÌ⣬×ÜÒÔΪÊÇʱ¼äÏÔʾ´íÁË£¬ÊÇ°²×°Èí¼þµÄÎÊÌ⣬½ñÌìÔÚÍøÉϲéÁËÏÂ×ÊÁÏ£¬Ô­À´ÁíÓÐÔ­Òò¡£
   ÆäʵÕâºÍʱÇøÓйأ¬PHPĬÈÏ»ñÈ¡0ʱÇø¿ªÊ¼µÄʱ¼ä£¬ÖйúÔÚ¶«°ËÇø£¬Òò´Ë£¬ÎÒÃÇÖйúÈ˵ĵçÄÔ¾ÍÉÙÁË8Сʱ£¬ÏÖÔÚÊÇ9£º57£¬¶ø»ñÈ¡µÄʱ¼äÒ²¾ÍÊÇ1£º57ÁË£¡
ÈçºÎ½â¾öÕâ¸öÎÊÌâÄØ£¿
1¡¢ÎÒÃÇдPHP³ÌÐòÔÚ»ñȡʱ¼äʱ£¬ÈËΪ¼ÓÉÏ8Сʱ
    ÏÂÃæÎҰɾßÌåµÄ³ÌÐòҲЩ³öÀ´£¬ËäÈ»ºÜ¼òµ¥£¬ºÇºÇ£º
      function nowtime(){
           $tmphour=date("g")+8;
           $tmpnow=date("Y-n-j ").$tmphour.date(":i:s");   //×¢ÒâÕâÀïµÄÈÕÆÚº¯ÊýºóÃæÓиö¿Õ¸ñ£¬¼´¿É½«Ê±¼ä
                                                                                        // ÏÔʾΪÀàËÆÓÚ2007-09-16 23:46£º11µÄ¸ñʽ¡£ 
           return $tmpnow;
      }
 
2¡¢Èç¹ûÖ±½Ó»ñÈ¡Õýȷʱ¼ä£¬Ò²¿ÉÐÞ¸ÄPHPµÄÅäÖÃÎļþ£¬¼´²éÕÒphp.iniÎļþ
         Ð޸ķ½·¨£ºÔÚphp.iniÎļþÖÐÕÒµ½ÏÂÃæÕâÐУº
         ;date.timezone =
         ½«ÉÏÃæÕâÐеÄ;×¢ÊÍ·ûÈ¥µô£¬ºóÃæ¼ÓÉÏPRC£¨ÖйúÈËÃñ¹²ºÍ¹úµÄÓ¢Îĵ¥´ÊËõд£©£¬¼´¸Ä³ÉÏÂÃæÕâÑù£º
         date.timezone = PRC
         Èç¹ûÄãµÄphp.iniÎ


Ïà¹ØÎĵµ£º

php curlµÄ¼¸¸öÀý×Ó

ʹÓÃPHPµÄcURL¿â¿ÉÒÔ¼òµ¥ºÍÓÐЧµØÈ¥×¥ÍøÒ³¡£ÄãÖ»ÐèÒªÔËÐÐÒ»¸ö½Å±¾£¬È»ºó·ÖÎöÒ»ÏÂÄãËùץȡµÄÍøÒ³£¬È»ºó¾Í¿ÉÒÔÒÔ³ÌÐòµÄ·½Ê½µÃµ½ÄãÏëÒªµÄÊý¾Ý
ÁË¡£ÎÞÂÛÊÇÄãÏë´Ó´ÓÒ»¸öÁ´½ÓÉÏÈ¡²¿·ÖÊý¾Ý£¬»òÊÇÈ¡Ò»¸öXMLÎļþ²¢°ÑÆäµ¼ÈëÊý¾Ý¿â£¬ÄÇžÍÊǼòµ¥µÄ»ñÈ¡ÍøÒ³ÄÚÈÝ£¬cURL ÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄPHP¿â¡£
PHPÖеÄCURLº¯Êý¿â£¨Client URL Librar ......

ÓÃPHPдµÄDIV+CSSÈÕÀúº¯Êý

 ÆäʵÕâƪÎÄÕÂÒ²²»ÄÜËã×÷ÊÇÔ­´´£¬Ö»ÊÇÔÚÔ­×÷ÕߵĻù´¡ÉÏÐ޸ĵıȽ϶࣬¼¸ºõÖØдÁËÒ»±é¡£
<?php
 /**
*ÔÚÔ­×÷ÕߵĻù´¡ÉÏÐ޸ĵģ¬ºÇºÇ£¬²»¹ýÍü¼ÇÁËÔ­×÷ÕßÊÇË­ÁË£¬
*Èç¹ûÔ­×÷Õß¿´µ½µÄ»°£¬¸øÎÒÒ»¸öÌáʾ£¬o(∩_∩)o...
*ÎÒµÄblog:http://etongchina.blogcn.com
*ÎÒµÄÓÊÏä:etongchina@gmail.com
**/
fu ......

PHPÄ£°åÒýÇæSmarty»º´æÓ¦ÓÃ

1£ºsmarty »º´æµÄÅäÖÃ
      
Php´úÂë
$smarty->cache_dir = "/caches/"; //»º´æĿ¼
$smarty->caching = true; //¿ªÆô»º´æ,ΪflaseµÄʱºî»º´æÎÞЧ
$smarty->cache_lifetime = 60; //»º´æʱ¼ä
2:smarty»º´æµÄʹÓúÍÇå³ý
   
Php´úÂë
$smarty->di ......

2009Äê9ÔÂÓïÑÔÅÅÐаñ£ºPHP³¬Ô½C++


TIOBEÊÀ½ç±à³ÌÓïÑÔÅÅÐаñÕ¹ÏÖÁ˱à³ÌÓïÑÔµÄÁ÷ÐÐÇ÷ÊÆ¡£Ã¿¸öÔ£¬¶¼ÓÐ×îеÄÊý¾Ý±»¸üС£Õâ·ÝÅÅÐаñµÄÊý¾ÝÈ¡ÑùÀ´Ô´ÓÚ»¥ÁªÍøÉϸ»Óо­ÑéµÄ³ÌÐòÔ±¡¢ÉÌ ÒµÓ¦Óá¢ÖøÃûµÄËÑË÷ÒýÇ棨ÖîÈç¹È¸è¡¢ MSN ¡¢ÑÅ»¢£©µÄ¹Ø¼ü×ÖÅÅÃû¡¢ Alexa ÉϵÄÅÅÃûµÈ¡£Çë×¢ÒâÕâ¸öÅÅÐаñÖ»ÊÇ·´Ó³ÁËij¸ö±à³ÌÓïÑÔµÄÈÈÃÅ³Ì¶È , Õâ²¢²»´ú±íËüÊÇÒ»¸ö×îºÃµÄ±à³ÌÓïÑÔ» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ