uploading image file using php in ubuntu or linux not working

PHP script might be prevented form uploading file because of permissions : Ubuntu/Linux Am having this php script that should upload image save it as upload.html <!DOCTYPE html><html> <head> <title>UPLOAD</title> </head> <body> <form method=”post” action=”upload.php” enctype=”multipart/form-data”> <pre> Select File<input type=”file” name=”file”> <input type=”submit” name=”btn” value=”UPLOAD”> </pre> </form> </body></html> save as upload.php <?php$file_name=$_FILES[“file”][“name”];$temp_name=$_FILES[“file”][“tmp_name”];if(move_uploaded_file($temp_name,”/var/www/”.$file_name)) echo “File Uploaded”; …

uploading image file using php in ubuntu or linux not working Read More »