Hi all,
I am using this code:
//set the path of the image which I'm saving
$upfile = "../uploads/uploaded_images/".$customer_id.$userfile_name;
//if it doesn't work..
if (!copy($userfile, $upfile)){
echo "Problem: Could not move large image to directory";
exit;
}
$fp = fopen($upfile, "r");
//read the contents of the uploaded image
$contents = fread($fp, filesize ($upfile));
fclose($fp);
//write those contents into the new file
$fp = fopen($upfile, "w");
fwrite($fp, $contents);
fclose($fp);
It works fine - but only once per session. After once, I get this
strange error:
'Warning: Unable to open '/var/tmp/php87IcaK' for reading: No such
file or directory in /usr/local/plesk/apache/vhosts/myserver.com'
Can anyone please point me to a resource where I can find out what
this means?
Thanks! I really appreciate it!!!! Regards,
-joshua
staff@dot-comet.com