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¿â¿ÉÒÔ¼òµ¥ºÍÓÐЧµØÈ¥×¥ÍøÒ³¡£ÄãÖ»ÐèÒªÔËÐÐÒ»¸ö½Å±¾£¬È»ºó·ÖÎöÒ»ÏÂÄãËùץȡµÄÍøÒ³£¬È»ºó¾Í¿ÉÒÔÒÔ³ÌÐòµÄ·½Ê½µÃµ½ÄãÏëÒªµÄÊý¾Ý
ÁË¡£ÎÞÂÛÊÇÄãÏë´Ó´ÓÒ»¸öÁ´½ÓÉÏÈ¡²¿·ÖÊý¾Ý£¬»òÊÇÈ¡Ò»¸öXMLÎļþ²¢°ÑÆäµ¼ÈëÊý¾Ý¿â£¬ÄÇžÍÊǼòµ¥µÄ»ñÈ¡ÍøÒ³ÄÚÈÝ£¬cURL ÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄPHP¿â¡£
PHPÖеÄCURLº¯Êý¿â£¨Client URL Librar ......
PHPÄ£ÄâSMTP·¢ËÍÓʼþµÄÀà
<?php
/*********************************************************
filename£ºmail.class.php
describe£ºÓÊÏäµÄÅäÖ㬾²âÊÔ¿ÉÒÔÊÊÓÃÓÚLinuxºÍwindows
function£º¼ì²éÓÊÏäµÄºÏ·¨ÐÔ£¬·¢ËÍ»ù±¾µÄÓÊÏäÑéÖ¤ÐÅÏ¢
author£º etongchina@gmail. ......
Õâ¸öÎĵµ¼òµ¥½éÉÜÁËÔõôʹÓÃC++ΪPHP±àдһ¸öÀ©Õ¹Ä£¿é¡£ÎÒÒѾ±»Îʼ°Õâ¸öÎÊÌâÎÞÊý´ÎÁË£¬ËùÒÔÎÒ¾ö¶¨ÎªºóÀ´Õßдһ¸ö¼òµ¥µÄHOWTO¡£ÕâƪÎÄÕÂÖ»»á˵Ã÷һЩҪµãºÍ¹Ø¼üÖ®´¦£¬Èç¹ûÄãÏ£ÍûѧϰC++»òPHP£¬Çë²éÔÄÆäËüµÄÎĵµ¡£
˳±ã£¬ÔÚ±¾ÎÄÖÐÎÒÃÇÒ²»á¿´Ò»ÏÂÔÚPHP5ÖÐÔõô°ÑC++ÀàÓ°Éäµ½PHPÖС£ÎÄÕÂÖеÄÀý×Ó¿ÉÒÔÔÚPHP4ºÍPHP5µÄ»·¾³ÏÂÊ¹Ó ......
TIOBEÊÀ½ç±à³ÌÓïÑÔÅÅÐаñÕ¹ÏÖÁ˱à³ÌÓïÑÔµÄÁ÷ÐÐÇ÷ÊÆ¡£Ã¿¸öÔ£¬¶¼ÓÐ×îеÄÊý¾Ý±»¸üС£Õâ·ÝÅÅÐаñµÄÊý¾ÝÈ¡ÑùÀ´Ô´ÓÚ»¥ÁªÍøÉϸ»ÓоÑéµÄ³ÌÐòÔ±¡¢ÉÌ ÒµÓ¦Óá¢ÖøÃûµÄËÑË÷ÒýÇ棨ÖîÈç¹È¸è¡¢ MSN ¡¢ÑÅ»¢£©µÄ¹Ø¼ü×ÖÅÅÃû¡¢ Alexa ÉϵÄÅÅÃûµÈ¡£Çë×¢ÒâÕâ¸öÅÅÐаñÖ»ÊÇ·´Ó³ÁËij¸ö±à³ÌÓïÑÔµÄÈÈÃÅ³Ì¶È , Õâ²¢²»´ú±íËüÊÇÒ»¸ö×îºÃµÄ±à³ÌÓïÑÔ» ......