I am trying to upload this to a remote server, so do I have to change any permissions for that certain folder that I am uploading it too. Cause now it is giving me this error:
Warning: SAFE MODE Restriction in effect. The script whose uid is 574 is not allowed to access / owned by uid 0 in /home/virtual/site70/fst/var/www/html/horizon/upload.php on line 17
Your file has been uploaded. Details of the file is listed below:
Filename: vislab.txt
File size: 42
this is the code that I am using:
$uploadPath = "/foo/uploads/".$file_name;
copy ($file, $uploadPath);
echo "Your file has been uploaded. Details of the file is listed below: ";
echo "<br>";
echo "Filename: ".$file_name;
echo "<br>";
echo "File size: ".$file_size;