Cron php
Posted: Wed Jan 21, 2009 11:23 pm
May I ask for a help???
Line number On/Off | Expand/Contract
So the file copied and named index.htm.bkb, please I need some help to let the name to be like that the date.index.htm.bkb
Where the date in this format d.m.y
Thanks in advance
Line number On/Off | Expand/Contract
Code: Select all
<?php
$file = '/home/xxxx/public_html/index.htm';
$newfile = '/home/xxxx/public_html/bkb/2009/01/index.htm.bkb';
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
else
{
echo "Index Copied";
}
Where the date in this format d.m.y
Thanks in advance