Preferred Member from GB
joined:July 25, 2005
I'm stuck with a short bit of code:
copy($pngoldpth, $pngnewpth) or die("Unable to copy PNG.");
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.