摘要:
time() //timestamp getdate() //return a array,contain year,month,day.... and you can pass a timestamp to it,return suitable value format: date(format, 阅读全文
摘要:
First: open the php.ini and find the keyword mail function Reference: https://stackoverflow.com/questions/5335273/how to send an email using php Note: 阅读全文
摘要:
to use session,you can : delete session have two ways one is other is : if user ban to store cookie in his brower, you can use : you should close cook 阅读全文
摘要:
1. r open the file and read only 2.r+ open the file and write 3.w open the file and write only truncates the file to zero length. 4.w+ open the file a 阅读全文
摘要:
``` ' . join('|', $known) . ')[/ ]+(?[0-9.|a-zA-Z.]*)#'; if (!preg_match_all($pattern, $u_agent, $matches)) { // we have no matching number just continue ... 阅读全文
摘要:
``` "; echo constant('name').''; echo __LINE__.''; //The current line number echo __FILE__.'';//the current filename function abc(){ echo __FUNCTION__.'';//echo function name } abc(); class a{ fu... 阅读全文