MySQL£ºÈÕÆÚº¯Êý¡¢Ê±¼äº¯Êý×ܽá
Ò»¡¢MySQL »ñµÃµ±Ç°ÈÕÆÚʱ¼ä º¯Êý
1.1 »ñµÃµ±Ç°ÈÕÆÚ+ʱ¼ä£¨date + time£©º¯Êý£ºnow()
mysql> select now(); +---------------------+ | now() | +---------------------+ | 2008-08-08 22:20:46 | +---------------------+
³ýÁË now() º¯ÊýÄÜ»ñµÃµ±Ç°µÄÈÕÆÚʱ¼äÍ⣬MySQL Öл¹ÓÐÏÂÃæµÄº¯Êý£º
current_timestamp() ,current_timestamp ,localtime() ,localtime ,localtimestamp -- (v4.0.6) ,localtimestamp() -- (v4.0.6)
ÕâЩÈÕÆÚʱ¼äº¯Êý£¬¶¼µÈͬÓÚ now()¡£¼øÓÚ now() º¯Êý¼ò¶ÌÒ׼ǣ¬½¨Òé×ÜÊÇ Ê¹Óà now() À´Ìæ´úÉÏÃæÁгöµÄº¯Êý¡£
1.2 »ñµÃµ±Ç°ÈÕÆÚ+ʱ¼ä£¨date + time£©º¯Êý£ºsysdate()
sysdate() ÈÕÆÚʱ¼äº¯Êý¸ú now() ÀàËÆ£¬²»Í¬Ö®´¦ÔÚÓÚ£ºnow() ÔÚÖ´ÐпªÊ¼Ê±Öµ¾ÍµÃµ½ÁË£¬sysdate() ÔÚº¯ÊýÖ´ÐÐʱ¶¯Ì¬µÃµ½Öµ¡£¿´ÏÂÃæµÄÀý×Ó¾ÍÃ÷°×ÁË£º
mysql> select now(), sleep(3), now(); +---------------------+----------+---------------------+ | now() | sleep(3) | now() | +---------------------+----------+---------------------+ | 2008-08-08 22:28:21 | 0 | 2008-08-08 22:28:21 | +---------------------+----------+---------------------+
mysql> select sysdate(), sleep(3), sysdate(); +---------------------+----------+---------------------+ | sysdate() | sleep(3) | sysdate() | +---------------------+----------+---------------------+ | 2008-08-08 22:28:41 | 0 | 2008-08-08 22:28:44 | +---------------------+----------+---------------------+
¿ÉÒÔ¿´µ½£¬ËäÈ»ÖÐ; sleep 3 Ã룬µ« now() º¯ÊýÁ½´ÎµÄʱ¼äÖµÊÇÏàͬµÄ£»sysdate() º¯ÊýÁ½´ÎµÃµ½µÄʱ¼äÖµÏà²î 3 Ãë¡£MySQL Manual ÖÐÊÇÕâÑù ÃèÊö sysdate() µÄ£ºReturn the time at which the function executes¡£
sysdate() ÈÕÆÚʱ¼äº¯Êý£¬Ò»°ãÇé¿öϺÜÉÙÓõ½¡£
2. »ñµÃµ±Ç°ÈÕÆÚ£¨date£©º¯Êý£ºcurdate()
mysql> select curdate(); +------------+ | curdate() | +------------+ | 2008-08-08 | +------------+
ÆäÖУ¬ÏÂÃæµÄÁ½¸öÈÕÆÚº¯ÊýµÈͬÓÚ curdate()£º
current_date() ,current_date
3. »ñµÃµ±Ç°Ê±¼ä£¨time£©º¯Êý£ºcurtime()
mysql> select curtime(); +-----------+ | curtime() | +-----------+ | 22:41:30 | +-----------+
ÆäÖУ¬ÏÂÃæµÄÁ½¸öʱ¼äº¯ÊýµÈͬÓÚ curtime()£º
current_time() ,current_time
4. »ñµÃµ±Ç° UTC ÈÕÆÚʱ¼äº¯Êý£ºutc_date(), utc_time(), utc_timestamp()
mysql> select utc_timestamp(), utc_date(), utc_time(), now() +---------------------+------------+------------+---------------------+ | utc_timestamp() | utc_date() | utc_time() | now() | +---------------------+------------+------------+---------------------+ | 2008-08-08 14:47:11 | 2008-08-08 | 14:47:11 | 2008-08-08 22:47:11 | +---------------------+------------+------------+---------------------+
ÒòΪÎÒ¹úλÓÚ¶«°ËʱÇø£¬ËùÒÔ±¾µØʱ¼ä = UTC ʱ¼ä + 8 Сʱ¡£UTC ʱ¼äÔÚÒµÎñÉæ¼° ¶à¸ö¹ú¼ÒºÍµØÇøµÄʱºò£¬·Ç³£ÓÐÓá£
¶þ¡¢MySQL ÈÕÆÚʱ¼ä Extract£¨Ñ¡È¡£© º¯Êý¡£
1. Ñ¡È¡ÈÕÆÚʱ¼äµÄ¸÷¸ö²¿·Ö£ºÈÕÆÚ¡¢Ê±¼ä¡¢Äê¡¢¼¾¶È¡¢Ô¡¢ÈÕ¡¢Ð¡Ê±¡¢·ÖÖÓ¡¢Ã롢΢Ãë
set @dt = '2008-09-10 07:15:30.123456'; select date(@dt); -- 2008-09-10 select time(@dt); -- 07:15:30.123456 select year(@dt); -- 2008 select quarter(@dt); -- 3 select month(@dt); -- 9 select week(@dt); -- 36 select day(@dt); -- 10 select hour(@dt); -- 7 select minute(@dt); -- 15 select second(@dt); -- 30 select microsecond(@dt); -- 123456
2. MySQL Extract() º¯Êý£¬¿ÉÒÔÉÏÃæʵÏÖÀàËƵŦÄÜ£º
set @dt = '2008-09-10 07:15:30.123456'; select extract(year from @dt); -- 2008 select extract(quarter from @dt); -- 3 select extract(month from @dt); -- 9 select extract(week from @dt); -- 36 select extract(day from @dt); -- 10 select extract(hour from @dt); -- 7 select extract(minute from @dt); -- 15 select extract(second from @dt); -- 30 select extract(microsecond from @dt); -- 123456
select extract(year_month from @dt); -- 200809 select extract(day_hour from @dt); -- 1007 select extract(day_minute from @dt); -- 100715 select extract(day_second from @dt); -- 10071530 select extract(day_microsecond from @dt); -- 10071530123456 select extract(hour_minute from @dt); -- 715 select extract(hour_second from @dt); -- 71530 select extract(hour_microsecond from @dt); -- 71530123456 select extract(minute_second from @dt); -- 1530 select extract(minute_microsecond from @dt); -- 1530123456 select extract(second_microsecond from @dt); -- 30123456
MySQL Extract() º¯Êý³ýÁËûÓÐdate(),time() µÄ¹¦ÄÜÍ⣬ÆäËû¹¦ÄÜÒ»Ó¦¾ßÈ«¡£ ²¢ÇÒ»¹¾ßÓÐÑ¡È¡¡®day_microsecond¡¯ µÈ¹¦ÄÜ¡£×¢ÒâÕâÀï²»ÊÇֻѡȡ day ºÍ microsecond£¬ ¶øÊÇ´ÓÈÕÆÚµÄ day ²¿·Öһֱѡȡµ½ microsecond ²¿·Ö¡£¹»Ç¿º·µÄ°É£¡
MySQL Extract() º¯ÊýΨһ²»ºÃµÄµØ·½ÔÚÓÚ£ºÄãÐèÒª¶àÇü¸´Î¼üÅÌ¡£
3. MySQL dayof... º¯Êý£ºdayofweek(), dayofmonth(), dayofyear()
·Ö±ð·µ»ØÈÕÆÚ²ÎÊý£¬ÔÚÒ»ÖÜ¡¢Ò»Ô¡¢Ò»ÄêÖеÄλÖá£
set @dt = '2008-08-08'; select dayofweek(@dt); -- 6 select dayofmonth(@dt); -- 8 select dayofyear(@dt); -- 221
ÈÕÆÚ '2008-08-08' ÊÇÒ»ÖÜÖÐµÄµÚ 6 Ì죨1 = Sunday, 2 = Monday, ..., 7 = Saturday£©£» Ò»ÔÂÖÐµÄµÚ 8 Ì죻һÄêÖÐµÄµÚ 221 Ìì¡£
4. MySQL week... º¯Êý£ºweek(), weekofyear(), dayofweek(), weekday(), yearweek()
set @dt = '2008-08-08'; select week(@dt); -- 31 select week(@dt,3); -- 32 select weekofyear(@dt); -- 32 select dayofweek(@dt); -- 6 select weekday(@dt); -- 4 select yearweek(@dt); -- 200831
MySQL week() º¯Êý£¬¿ÉÒÔÓÐÁ½¸ö²ÎÊý£¬¾ßÌå¿É¿´Êֲᡣweekofyear() ºÍ week() Ò»Ñù£¬¶¼ÊǼÆË㡰ijÌ족ÊÇλÓÚÒ»ÄêÖеĵڼ¸ÖÜ¡£weekofyear(@dt) µÈ¼ÛÓÚ week(@dt,3)¡£
MySQL weekday() º¯ÊýºÍ dayofweek() ÀàËÆ£¬¶¼ÊÇ·µ»Ø¡°Ä³Ì족ÔÚÒ»ÖÜÖеÄλÖᣠ²»Í¬µãÔÚÓڲο¼µÄ±ê×¼£¬ weekday£º(0 = Monday, 1 = Tuesday, ..., 6 = Sunday)£»dayofweek£º£¨1 = Sunday, 2 = Monday, ..., 7 = Saturday£©
MySQL yearweek() º¯Êý£¬·µ»Ø year(2008) + week λÖÃ(31)¡£
5. MySQL ·µ»ØÐÇÆÚºÍÔ·ÝÃû³Æº¯Êý£ºdayname(), monthname()
set @dt = '2008-08-08'; select dayname(@dt); -- Friday select monthname(@dt); -- August
˼¿¼£¬ÈçºÎ·µ»ØÖÐÎĵÄÃû³ÆÄØ£¿
6. MySQL last_day() º¯Êý£º·µ»ØÔ·ÝÖеÄ×îºóÒ»Ìì¡£
select last_day('2008-02-01'); -- 2008-02-29 select last_day('2008-08-08'); -- 2008-08-31
MySQL last_day() º¯Êý·Ç³£ÓÐÓ㬱ÈÈçÎÒÏëµÃµ½µ±Ç°Ô·ÝÖÐÓжàÉÙÌ죬 ¿ÉÒÔÕâÑùÀ´¼ÆË㣺
mysql> select now(), day(last_day(now())) as days; +---------------------+------+ | now() | days | +---------------------+------+ | 2008-08-09 11:45:45 | 31 | +---------------------+------+
Èý¡¢MySQL ÈÕÆÚʱ¼ä¼ÆË㺯Êý
1. MySQL ΪÈÕÆÚÔö¼ÓÒ»¸öʱ¼ä¼ä¸ô£ºdate_add()
set @dt = now(); select date_add(@dt, interval 1 day); -- add 1 day select date_add(@dt, interval 1 hour); -- add 1 hour select date_add(@dt, interval 1 minute); -- ... select date_add(@dt, interval 1 second); select date_add(@dt, interval 1 microsecond); select date_add(@dt, interval 1 week); select date_add(@dt, interval 1 month); select date_add(@dt, interval 1 quarter); select date_add(@dt, interval 1 year);
select date_add(@dt, interval -1 day); -- sub 1 day
MySQL adddate(), addtime()º¯Êý£¬¿ÉÒÔÓà date_add() À´Ìæ´ú¡£ ÏÂÃæÊÇ date_add() ʵÏÖ addtime() ¹¦ÄÜʾÀý£º
mysql> set @dt = '2008-08-09 12:12:33'; mysql> mysql> select date_add(@dt, interval '01:15:30' hour_second); +------------------------------------------------+ | date_add(@dt, interval '01:15:30' hour_second) | +------------------------------------------------+ | 2008-08-09 13:28:03 | +------------------------------------------------+
mysql> select date_add(@dt, interval '1 01:15:30' day_second); +-------------------------------------------------+ | date_add(@dt, interval '1 01:15:30' day_second) | +-------------------------------------------------+ | 2008-08-10 13:28:03 | +-------------------------------------------------+
date_add() º¯Êý£¬·Ö±ðΪ @dt Ôö¼ÓÁË¡°1Сʱ 15·Ö 30Ã롱 ºÍ ¡°1Ìì 1Сʱ 15·Ö 30Ã롱¡£ ½¨Ò飺×ÜÊÇʹÓà date_add() ÈÕÆÚʱ¼äº¯ÊýÀ´Ìæ´ú adddate(), addtime()¡£
2. MySQL ΪÈÕÆÚ¼õÈ¥Ò»¸öʱ¼ä¼ä¸ô£ºdate_sub()
mysql> select date_sub('1998-01-01 00:00:00', interval '1 1:1:1' day_second); +----------------------------------------------------------------+ | date_sub('1998-01-01 00:00:00', interval '1 1:1:1' day_second) | +----------------------------------------------------------------+ | 1997-12-30 22:58:59 | +----------------------------------------------------------------+
MySQL date_sub() ÈÕÆÚʱ¼äº¯Êý ºÍ date_add() Ó÷¨Ò»Ö£¬²»ÔÙ׸Êö¡£ ÁíÍ⣬MySQL Öл¹ÓÐÁ½¸öº¯Êý subdate(), subtime()£¬½¨Ò飬Óà date_sub() À´Ìæ´ú¡£
3. MySQL ÁíÀàÈÕÆÚº¯Êý£ºperiod_add(P,N), period_diff(P1,P2)
º¯Êý²ÎÊý¡°P¡± µÄ¸ñʽΪ¡°YYYYMM¡± »òÕß ¡°YYMM¡±£¬µÚ¶þ¸ö²ÎÊý¡°N¡± ±íʾÔö¼Ó»ò¼õÈ¥N month£¨Ô£©¡£
MySQL period_add(P,N)£ºÈÕÆÚ¼Ó/¼õÈ¥NÔ¡£
mysql> select period_add(200808,2), period_add(20080808,-2) +----------------------+-------------------------+ | period_add(200808,2) | period_add(20080808,-2) | +----------------------+-------------------------+ | 200810 | 20080806 | +----------------------+-------------------------+
MySQL period_diff(P1,P2)£ºÈÕÆÚ P1-P2£¬·µ»Ø N ¸öÔ¡£
mysql> select period_diff(200808, 200801); +-----------------------------+ | period_diff(200808, 200801) | +-----------------------------+ | 7 | +-----------------------------+
ÔÚ MySQL ÖУ¬ÕâÁ½¸öÈÕÆÚº¯Êý£¬Ò»°ãÇé¿öϺÜÉÙÓõ½¡£
4. MySQL ÈÕÆÚ¡¢Ê±¼äÏà¼õº¯Êý£ºdatediff(date1,date2), timediff(time1,time2)
MySQL datediff(date1,date2)£ºÁ½¸öÈÕÆÚÏà¼õ date1 - date2£¬·µ»ØÌìÊý¡£
select datediff('2008-08-08', '2008-08-01'); -- 7 select datediff('2008-08-01', '2008-08-08'); -- -7
MySQL timediff(time1,time2)£ºÁ½¸öÈÕÆÚÏà¼õ time1 - time2£¬·µ»Ø time ²îÖµ¡£
select timediff('2008-08-08 08:08:08', '2008-08-08 00:00:00'); -- 08:08:08 select timediff('08:08:08', '00:00:00'); -- 08:08:08
×¢Ò⣺timediff(time1,time2) º¯ÊýµÄÁ½¸ö²ÎÊýÀàÐͱØÐëÏàͬ¡£
ËÄ¡¢MySQL ÈÕÆÚת»»º¯Êý¡¢Ê±¼äת»»º¯Êý
1. MySQL £¨Ê±¼ä¡¢Ã룩ת»»º¯Êý£ºtime_to_sec(time), sec_to_time(seconds)
select time_to_sec('01:00:05'); -- 3605 select sec_to_time(3605); -- '01:00:05'
2. MySQL £¨ÈÕÆÚ¡¢ÌìÊý£©×ª»»º¯Êý£ºto_days(date), from_days(days)
select to_days('0000-00-00'); -- 0 select to_days('2008-08-08'); -- 733627
select from_days(0); -- '0000-00-00' select from_days(733627); -- '2008-08-08'
3. MySQL Str to Date £¨×Ö·û´®×ª»»ÎªÈÕÆÚ£©º¯Êý£ºstr_to_date(str, format)
select str_to_date('08/09/2008', '%m/%d/%Y'); -- 2008-08-09 select str_to_date('08/09/08' , '%m/%d/%y'); -- 2008-08-09 select str_to_date('08.09.2008', '%m.%d.%Y'); -- 2008-08-09 select str_to_date('08:09:30', '%h:%i:%s'); -- 08:09:30 select str_to_date('08.09.2008 08:09:30', '%m.%d.%Y %h:%i:%s'); -- 2008-08-09 08:09:30
¿ÉÒÔ¿´µ½£¬str_to_date(str,format) ת»»º¯Êý£¬¿ÉÒÔ°ÑһЩÔÓÂÒÎÞÕµÄ×Ö·û´®×ª»»ÎªÈÕÆÚ¸ñʽ¡£ ÁíÍ⣬ËüÒ²¿ÉÒÔת»»ÎªÊ±¼ä¡£¡°format¡± ¿ÉÒԲο´ MySQL Êֲᡣ
4. MySQL Date/Time to Str£¨ÈÕÆÚ/ʱ¼äת»»Îª×Ö·û´®£©º¯Êý£ºdate_format(date,format), time_format(time,format)
mysql> select date_format('2008-08-08 22:23:00', '%W %M %Y'); +------------------------------------------------+ | date_format('2008-08-08 22:23:00', '%W %M %Y') | +------------------------------------------------+ | Friday August 2008 | +------------------------------------------------+
mysql> select date_format('2008-08-08 22:23:01', '%Y%m%d%H%i%s'); +----------------------------------------------------+ | date_format('2008-08-08 22:23:01', '%Y%m%d%H%i%s') | +----------------------------------------------------+ | 20080808222301 | +----------------------------------------------------+
mysql> select time_format('22:23:01', '%H.%i.%s'); +-------------------------------------+ | time_format('22:23:01', '%H.%i.%s') | +-------------------------------------+ | 22.23.01 | +-------------------------------------+
MySQL ÈÕÆÚ¡¢Ê±¼äת»»º¯Êý£ºdate_format(date,format), time_format(time,format) Äܹ»°ÑÒ»¸öÈÕÆÚ/ʱ¼äת»»³É¸÷ÖÖ¸÷ÑùµÄ×Ö·û´®¸ñʽ¡£ËüÊÇ str_to_date(str,format) º¯ÊýµÄ Ò»¸öÄæת»»¡£
5. MySQL »ñµÃ¹ú¼ÒµØÇøʱ¼ä¸ñʽº¯Êý£ºget_format()
MySQL get_format() Óï·¨£º
get_format(date|time|datetime, 'eur'|'usa'|'jis'|'iso'|'internal'
MySQL get_format() Ó÷¨µÄÈ«²¿Ê¾Àý£º
select get_format(date,'usa') ; -- '%m.%d.%Y' select get_format(date,'jis') ; -- '%Y-%m-%d' select get_format(date,'iso') ; -- '%Y-%m-%d' select get_format(date,'eur') ; -- '%d.%m.%Y' select get_format(date,'internal') ; -- '%Y%m%d' select get_format(datetime,'usa') ; -- '%Y-%m-%d %H.%i.%s' select get_format(datetime,'jis') ; -- '%Y-%m-%d %H:%i:%s' select get_format(datetime,'iso') ; -- '%Y-%m-%d %H:%i:%s' select get_format(datetime,'eur') ; -- '%Y-%m-%d %H.%i.%s' select get_format(datetime,'internal') ; -- '%Y%m%d%H%i%s' select get_format(time,'usa') ; -- '%h:%i:%s %p' select get_format(time,'jis') ; -- '%H:%i:%s' select get_format(time,'iso') ; -- '%H:%i:%s' select get_format(time,'eur') ; -- '%H.%i.%s' select get_format(time,'internal') ; -- '%H%i%s'
MySQL get_format() º¯ÊýÔÚʵ¼ÊÖÐÓõ½»ú»áµÄ±È½ÏÉÙ¡£
6. MySQL Æ´´ÕÈÕÆÚ¡¢Ê±¼äº¯Êý£ºmakdedate(year,dayofyear), maketime(hour,minute,second)
select makedate(2001,31); -- '2001-01-31' select makedate(2001,32); -- '2001-02-01'
select maketime(12,15,30); -- '12:15:30'
Îå¡¢MySQL ʱ¼ä´Á£¨Timestamp£©º¯Êý
1. MySQL »ñµÃµ±Ç°Ê±¼ä´Áº¯Êý£ºcurrent_timestamp, current_timestamp()
mysql> select current_timestamp, current_timestamp(); +---------------------+---------------------+ | current_timestamp | current_timestamp() | +---------------------+---------------------+ | 2008-08-09 23:22:24 | 2008-08-09 23:22:24 | +---------------------+---------------------+
2. MySQL £¨Unix ʱ¼ä´Á¡¢ÈÕÆÚ£©×ª»»º¯Êý£º
unix_timestamp(), unix_timestamp(date), from_unixtime(unix_timestamp), from_unixtime(unix_timestamp,format)
ÏÂÃæÊÇʾÀý£º
select unix_timestamp(); -- 1218290027 select unix_timestamp('2008-08-08'); -- 1218124800 select unix_timestamp('2008-08-08 12:30:00'); -- 1218169800
select from_unixtime(1218290027); -- '2008-08-09 21:53:47' select from_unixtime(1218124800); -- '2008-08-08 00:00:00' select from_unixtime(1218169800); -- '2008-08-08 12:30:00'
select from_unixtime(1218169800, '%Y %D %M %h:%i:%s %x'); -- '2008 8th August 12:30:00 2008'
3. MySQL ʱ¼ä´Á£¨timestamp£©×ª»»¡¢Ôö¡¢¼õº¯Êý£º
timestamp(date) -- date to timestamp timestamp(dt,time) -- dt + time timestampadd(unit,interval,datetime_expr) -- timestampdiff(unit,datetime_expr1,datetime_expr2) --
Ç뿴ʾÀý²¿·Ö£º
select timestamp('2008-08-08'); -- 2008-08-08 00:00:00 select timestamp('2008-08-08 08:00:00', '01:01:01'); -- 2008-08-08 09:01:01 select timestamp('2008-08-08 08:00:00', '10 01:01:01'); -- 2008-08-18 09:01:01
select timestampadd(day, 1, '2008-08-08 08:00:00'); -- 2008-08-09 08:00:00 select date_add('2008-08-08 08:00:00', interval 1 day); -- 2008-08-09 08:00:00
MySQL timestampadd() º¯ÊýÀàËÆÓÚ date_add()¡£
select timestampdiff(year,'2002-05-01','2001-01-01'); -- -1 select timestampdiff(day ,'2002-05-01','2001-01-01'); -- -485 select timestampdiff(hour,'2008-08-08 12:00:00','2008-08-08 00:00:00'); -- -12 select datediff('2008-08-08 12:00:00', '2008-08-01 00:00:00'); -- 7
MySQL timestampdiff() º¯Êý¾Í±È datediff() ¹¦ÄÜÇ¿¶àÁË£¬datediff() Ö»ÄܼÆËãÁ½¸ö ÈÕÆÚ£¨date£©Ö®¼äÏà²îµÄÌìÊý¡£
Áù¡¢MySQL ʱÇø£¨timezone£©×ª»»º¯Êý
convert_tz(dt,from_tz,to_tz)
select convert_tz('2008-08-08 12:00:00', '+08:00', '+00:00'); -- 2008-08-08 04:00:00
ʱÇøת»»Ò²¿ÉÒÔͨ¹ý date_add, date_sub, timestampadd À´ÊµÏÖ¡£
select date_add('2008-08-08 12:00:00', interval -8 hour); -- 2008-08-08 04:00:00 select date_sub('2008-08-08 12:00:00', interval 8 hour); -- 2008-08-08 04:00:00 select timestampadd(hour, -8, '2008-08-08 12:00:00'); -- 2008-08-08 04:00:00
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ