I can't seem to Upload files onto the server using PHP. I have tried turning off the Sandbox feature which has removed one of the error messeges I was getting, however, I still am unable to use copy() to move the file. This is the error message I am getting from PHP:
Warning: Unable to open '' for reading: No such file or directory in /home/e-smith/files/primary/html/inc/admin.inc on line 575
Problem: Image file could not be moved into the proper directory
And this is the section of PHP Code which it is complaining about:
$file_path = "/home/uploads/". $imagefile_name;
if(!copy($imagefile, $file_path))
{
echo "Problem: Image file could not be moved into the proper directory";
return false;
}
The directory exists and has 40777 rights. What have I done wrong?