HI...I hope someone can help. We have been running code that was working until our IPS decided it was time to upgrade to PHP4.2.1.
Our "copy" command....see code below, worked before the upgrade...now we get our error message during every execution.
Any ideas???
Please advise.
<?php
$userfile = "afile.doc";
$tmpfile ="tempfile.doc";
if(!@copy($userfile, $tmpfile)) {
$msg = "ERROR - Can't create temp file";
echo "<SCRIPT>alert(\"$msg\")</SCRIPT>";
} else {
$msg = "Temp File Creation Successful";
echo "<SCRIPT>alert(\"$msg\")</SCRIPT>";
}
?>