Hi All,
I am having a strange problem... I am using a script I wrote that has worked fine elsewhere, but now on a new server...
i am simply copying an image from one dir to another -- but when i do, the image gets corrupted!
here is the code:
$newfile = "cgp".$date.".jpg";
$ufile = $current_dir.$file;
/ rename the chosen file, copy it to the cgp pod directory/
$upfile = $target_dir.$newfile;
copy($ufile, $upfile);
chmod($upfile,0777);
what gives?!
Thanks
Blakey