how to find server current datetime while 开发者_JAVA技巧uploading the file and downloading the file using php and mysql
You might be interested in the php functions time() and date():
http://www.php.net/manual/en/function.time.php
http://www.php.net/manual/en/function.date.php
Try these: In PHP:
$t = time();
$d = date();
In Mysql:
now()
select now()
精彩评论