³£ÓÃʱ¼ä¸ñʽÓë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
Ïà¹ØÎĵµ£º
²©¿Í£ºWordPress
WordPressÊÇʹÓÃPHP¿ª·¢µÄÖøÃû²©¿Íƽ̨£¬Ãâ·Ñ¿ªÔ´£¬¹¦ÄÜÇ¿´ó£¬²»½ö½öÓÃÓÚ²©¿Í´î½¨£¬»¹¿ÉÒԹ㷺ӦÓÃÓÚ¸÷ÀàÍøÂçÐÅÏ¢·¢²¼Æ½Ì¨¡£
ÂÛ̳£ºphpBB
phpBBÊÇÒ»Öֹ㷺Á÷ÐеĿªÔ´ÂÛ̳Èí¼þ£¬¾ßÓÐÒ×ÓÚʹÓõĹÜÀíÃæ°åºÍÓѺõÄÓû§°²×°½çÃæ£¬¿ÉÒÔÇáËɵØÔÚÊý·ÖÖÓÄÚ½¨Á¢ÆðÒ»¸öÂÛ̳£¬¹¦ÄÜÉϾßÓкܸߵĿÉÅäÖÃÐÔ£¬Äܹ»ÍêÈ«¶¨Ö ......
Êý¾Ý¿âÖвéѯµ½ÒÔϵĽá¹û£º
cname linename minute
aa c1 & ......
ÔÚÏîÄ¿¿ª·¢Öз¢ÏÖ¶ÔphpµÄÎĵµÈ±ÉÙ¹ÜÀí,±ðÈËдÁËÒ»¸ö,¹¦Äܲ»¶à
<?php
/**
* ˈ̞: doc
*
ÃèÊö: ÎĵµÉú³ÉÀà
* ÆäËû: ¿ÉÒÔ¶ÔĿ¼½øÐйýÂË,ÉèÖúÃԴĿ¼ºó,ÇëÓþø¶Ô·¾¶Ö¸¶¨Éú³ÉĿ¼,ģʽ¿Éµ÷,ģʽ
*
1Ϊ³£¹æÀàÐÍ,¼´ÒÔ Ð±Ïß**¿ªÍ·,ÒÔ*бÏß ½áÊø
* 2ΪÀ©Õ¹ÀàÐÍ,·²ÊÇ Ð±Ïß*¿ªÍ·ÒÔ*бÏß ½áÊøµÄ²¿·Ö¶¼½«³ÉΪÎÄ ......
<?
@session_start();
$counter = intval(file_get_contents("counter.dat"));
if(!$_SESSION['jingyun'])
{
$_SESSION['jingyun'] = true;
$counter++;
$fp = fopen("counter.dat","w");
fwrite($fp, $counter);
fclose($fp);
}
?>
×Ü·ÃÎÊ <span style="font-size:14px; color:#FF6600" mce_sty ......
×î½üÓиöС¶«Î÷Òª²é¿´mssqlÊý¾Ý¿âÊÇÓÃphpʵÏֵģ¬ÒÔǰÎÒÓÃphp5.2ʱ¸Ð¾õͦ¼òµ¥µÄËùÒÔÏëphp5.3Ò²Ó¦¸ÃºÜ¼òµ¥µÄ
ΪʲôҪÓÃphp5.3ÄØÒòΪÎÒÏëÓÃsqlite3.0µÄ°¡£¬ÒòΪphp5.2µÄ²»Ö§³Ösqlite3.0µÄ°¡£¬ËùÒÔÎÒÌØÒâÈ¥ÏÂÁË5.3ÁËÏÂÔØ»ØÀ´Á˲ŷ¢ÏÖ5.3ÀïûÓÐmssqlµÄdllÀ©Õ¹ÁË£¬ÓôÃÆ°¡£¬²»¹ÜÕâô¶àÏÈÓÃÆðÄÇsqlite3.0ÔÙ˵ÁË
sqlite3.0µÄ²¿·Ö ......