Hi,
I'm stuck with a short bit of code:
copy($pngoldpth, $pngnewpth) or die("Unable to copy PNG.");
delete("$pngoldpth");
echo "PNG moved successfully";
The script dies even before it has a chance to get to the "die" bit :) I never get any output. Enabled all error messages - not a single warning or error message, just a blank screen.
I thought the folders had suddenly become not writable. Unlikely because my file upload script is working. Just in case tried this line:
echo ( is_writable($pngnewpth) ) ? 'writable' : 'not writable';
Also tried echoing the variables and I get the expected output from them. Is there something obvious that I'm missing? Please help.