Hello,
Ok this is kinda strange error for me cause of 2 things.
1st: I don't get the error when working on my computer here at work, but when someone else on a computer outside of here does they get this following error:
//--The PHP error given--
Warning: Unable to open 'none' for reading: No such file or
directory in /home/dlonline/public_html/test/fileupload.php on line
39
//--This is the error I had output if the copy failed
Couldn't copy the file!
2nd: The file they try to upload still uploads just fine.
Any ideas what may cause this error?
Thanks for any help. Oh here is the code:
//--The Path To Where The File Should Be Place
$path = "/home/dlonline/public_html/user/";
//--Getting the files information
$tempname = $_FILES['photo']['tmp_name'];
$filetype = $_FILES['photo']['type'];
$filename1 = $_FILES['photo']['name'];
$tempname2 = $_FILES['photo2']['tmp_name'];
$filetype2 = $_FILES['photo2']['type'];
$filename2 = $_FILES['photo2']['name'];
//--Copy The File To The Appropriate Place
copy($tempname, $path.$filename1) or die("Couldn't copy the
file!");
copy($tempname2, $path.$filename2) or die("Couldn't copy the
file!");