copy() - no worky
Posted: Mon Jan 01, 2007 7:56 pm
My code -
My problem -
This code works just fine on my localhost - but i upload to my server and it just errors out.
My PHPinfo()
Is it a problem with the code - or a problem with the server?
Code: Select all
$Afile = "index.php";
$newfile = "index.php.bak";
if (!copy($Afile, $newfile)) {
echo "failed to copy $Afile...<br>";
}
echo '',$Afile,' - ',$newfile,'';This code works just fine on my localhost - but i upload to my server and it just errors out.
My PHPinfo()
Is it a problem with the code - or a problem with the server?