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);