Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Datestamp an exported file from php/mysql
June 26, 2006, 4:14 pm
rate this thread
Re: Datestamp an exported file from php/mysql
go to www.php.net and look for a function named date().
If you only feed the wished format, and not a timestamp, it will use now.
$filename = "backupOn";
$filename .= date('d_m_Y');
$filename .= ".csv";
will produce something like:
Just browse through all formatoption and take your pick.