Problem in Php script
I am facing a problem in php script ...this script is used to upload a file in server
Please help me ..here is the script
but when i check there is no file there
Please help me..Is there any error in script?
Please help me ..here is the script
<html> <head> <title>File Upload Form</title> </head> <body> This form allows you to upload a file to the server.<br> <form action="getfile.php" method="post"><br> Type (or select) Filename: <input type="file" name="uploadFile"> <input type="submit" value="Upload File"> </form> </body> </html>This is my home page
<html> <head> <title>Process Uploaded File</title> </head> <body> <?php move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'], "../uploads/{$_FILES['uploadFile'] ['name']}") ?> </body> </html>For this i have a created a directory 'uploads' where i want file to be uploaded
but when i check there is no file there
Please help me..Is there any error in script?
0