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

³£ÓÃʱ¼ä¸ñʽÓëPHPʱ¼ä¸ñʽÏ໥ת»»

ÎÄ/Fenying
 
¡¡¡¡ÀýÈçÓг£ÓÃʱ¼ä¸ñʽ yyyy-mm-dd HH:ii:ss£¬ÈçºÎת»»³ÉPHPÖÐdateº¯Êý¿ÉʹÓõÄʱ¼ä¸ñÊ½ÄØ£¿
¡¡¡¡Ê¹ÓàPHPTimeFormatfromCommon() ¿ÉÒÔ°ÑͨÓÃʱ¼ä¸ñʽת»»³ÉPHPʱ¼ä¸ñʽ
¡¡¡¡¡¡¡¡PHPTimeFormatfromCommon('yyyy-mm-dd HH:ii:ss') => 'Y-m-d H:i:s'
¡¡¡¡Ê¹Óà PHPTimeFormatToCommon() ¿ÉÒÔ°ÑPHPʱ¼ä¸ñʽת»»³ÉͨÓÃʱ¼ä¸ñʽ
¡¡¡¡¡¡¡¡PHPTimeFormatToCommon('Y-m-d H:i:s') =>  'yyyy-mm-dd HH:ii:ss'
¡¡¡¡ÀýÈ磺
¡¡¡¡¡¡¡¡echo gmdate(PHPTimeFormatfromCommon('yyyy-mm-dd HH:ii:ss A DD'), time() + 8 * 3600);
¡¡¡¡½á¹û£º
¡¡¡¡¡¡¡¡2010-04-10 11:11:54 AM Saturday
¡¡¡¡¾ßÌåʹÓÃ˵Ã÷Çë¿´´úÂëÖеÄ×¢ÊÍ£¬ÓÐÏêϸ˵Ã÷¡£ 
/*
    PHP Time Formatting Functions
    Author: Fenying
    Version: 1.0.0.1
    Time: 2010-04-10
    CopyRight: All CopyRight Fenying Studio 2007-2010 Reserved.
*/
 
    $DS_TIME_TimeSign = array(
        array('yyyy', '<#0x01#>', 'Y'),
        array('yy', '<#0x02#>', 'y'),
        array('MM', '<#0x03#>', 'F'),
        array('mm', '<#0x04#>', 'm'),
        array('M', '<#0x05#>', 'M'),
        array('m', '<#0x06#>', 'n'),
        array('t', '<#0x07#>', 't'),
        array('dd', '<#0x08#>', 'd'),
        array('d', '<#0x09#>', 'j'),
        array('DD', '<#0x10#>', 'l'),
        array('D', '<#0x11#>', 'jS'),
        array('z', '<#0x12#>', 'z'),
        array('W', '<#0x13#>', 'W'),
   &nb


Ïà¹ØÎĵµ£º

phpÖÐʹÓÃcom×é¼þ³öÏÖ"¾Ü¾ø·ÃÎÊ"µÄ´¦Àí


´úÂëÈçÏ£¬
// ½¨Á¢Ò»¸öÖ¸ÏòÐÂCOM×é¼þµÄË÷Òý
$word = new COM("word.application") or die("Can't start Word!");
// ÏÔʾĿǰÕýÔÚʹÓõÄWordµÄ°æ±¾ºÅ
echo "Loading Word, v. {$word->Version}
";
exit;
?>
ÓÐʱºòÄã»áµÃµ½Ò»¸ö´íÎó£¬
PHP Fatal error: Uncaught except ......

[ת£ÝÉîÈëÀí½âPHPÖ®require/include˳Ðò


×÷Õß: laruence(http://www.laruence.com
)
±¾ÎĵØÖ·: http://www.laruence.com/2010/05/04/1450.html
×ªÔØÇë×¢Ã÷³ö´¦
ÔÚ´óÐ͵ÄWebÏîÄ¿ÖÐ, include_pathÊÇÒ»¸öÄ£¿é»¯Éè¼ÆµÄ¸ù±¾Öеĸù±¾(µ±È»,ÏÖÔÚÒ²Óкܶà»ùÓÚautoloadµÄÉè¼Æ,
Õâ¸ö²»Ó°Ïì±¾ÎĵÄ̽ÌÖ), µ«ÊÇÕýÊÇÒòΪinclude_path, ¾­³£»áÈÃÎÒÃÇÓöµ½Ò»Ð©ÒòΪûÓÐÕÒµ½Õ ......

phpµÄsessionÓ÷¨Ð¡½á

¡¡sessionÊÇÍøÕ¾±£´æÓû§ÐÅÏ¢µÄÒ»ÖÖÊֶΣ¬Ó¦ÓÃÏ൱¹ã·º¡£ÀýÈçµÚÎå½ìÅÅÐаñ¾ÍʹÓÃÁËsession¡£¾­¹ý¶ÔµÚÎå½ìÅÅÐаñµÄÐ޸ģ¬ÎÒ×ܽáÁËÒ»ÏÂphpÖÐsessionµÄÓ÷¨¡£
£¨Ò»£©¿ªÊ¼session
¡¡¡¡ÔÚÿһ´ÎʹÓÃsession֮ǰ£¬¶¼Òª¼ÓÉÏÕâÒ»¾ä£º“session_start();”¡£¹ËÃû˼Ò壬Õâ¸öº¯ÊýµÄ×÷ÓþÍÊÇ¿ªÊ¼Ê¹ÓÃsession¡£
£¨¶þ£©×¢ ......

php ·À×¢Èë¹¥»÷º¯Êý

/*php ·À×¢È뺯Êý
string  $feifa  ÏÞÖÆÔªËØ×é³É
ÈçÓзǷ¨×Ö·ûÌø×ªµ½ÉÏÒ»Ò³ ·µ»Ø 0  Ã»Óзµ»Ø 1
*/
//ʹÓ÷½·¨
//$feifa=array("select","delete","from","update","create","destory","drop","alter" ......

php»ñÈ¡³ÌÐòÖ´ÐеÄʱ¼ä

ÔÚhead.htmÖмÓÈ룬Ҳ¾ÍÊÇÔÚĬÈÏÄ£°æÖÐÌí¼Ó“$stime=microtime(true); //»ñÈ¡³ÌÐò¿ªÊ¼Ö´ÐеÄʱ¼ä”
¾ä
<!--<?php
$stime=microtime(true); //»ñÈ¡³ÌÐò¿ªÊ¼Ö´ÐеÄʱ¼ä
$GuideFid[$fid]=str_replace("<a href='$webdb[www_url]' class='guide_menu'>>Ê×Ò³</a>","",$GuideFid[$fid]);
$f ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ