what the heck am I doing wrong here? What I wanna do is copy a file to another dir (sub dir) So Im guessing I need a path. Then after it's copied, I want to delete it.
Any help?
if (!copy($filename, $filename.'.bak')) {
echo "failed to copy $filename...<br />\n";
}
else {
echo "<center><b><font face=\"Verdana\" color=\"#C61839\">Your Log File Has Been Backed Up.
<br>It can be found <a href=\"http://dets2008/bincount/click_log.dat.bak\"><font color=\"red\">here</a></font></font></b></center>";}
if (file_exists($filename))
{
unlink("$filename");
return ("File $filename has been deleted.");
}else{
return ("$filename could not be found!");
}
}