I cant upload files to my server
Posted: Fri Feb 12, 2010 5:38 am
I am building a php site that requires users to fill a form and attach a picture. I tested on my local server and everything worked well, but when I uploaded to my server the following error message was echoed
please I need help with this. Thans for the support on this forum
The line 60 of my code is the last line of this code belowWarning: move_uploaded_file(../applications/DavidOgunsholavictor.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/ipschool/public_html/education/submit.php on line 60
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpuFcnIs' to '../applications/DavidOgunsholavictor.jpg' in /home/ipschool/public_html/education/submit.php on line 60
Code: Select all
$uploadDir = "../applications/$othernames$surname";
$filePath = $uploadDir . $fileName;
$result = move_uploaded_file($tmpName, $filePath);