![php logo php logo](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2wST43rE7cZMwwne8tcqX0MY4Nit-V-7K8Jr4-6VCVc9CP2yBg37CW2rj13GzxJGXvMho7_0GTn5DnKEHSr2c9a3iZYLF0Dmh14ldSpVjXMqaB8OCoOBjKIRNX1-UwNgk_rIIo1FKMrk/s1600/php-logo.jpg) |
PHP: Hypertext Preprocessor,scripting language |
PHP File Upload
Example HTML code for file upload:
Form_page.php
upload_file.php [Simple Code]
Parameters of $_FILES
- $_FILES["file"]["name"] - the name of the uploaded file
- $_FILES["file"]["type"] - the type of the uploaded file
- $_FILES["file"]["size"] - the size in bytes of the uploaded file
- $_FILES["file"]["tmp_name"] - the name of the temporary copy of the file stored on the server
- $_FILES["file"]["error"] - the error code resulting from the file upload
upload_file.php [Code with Restriction on Upload, store the file in php temp folder]
upload_file.php [Code with Restriction on Upload, store the file in destination folder]
1 comment:
Excellent php tutorials.
Post a Comment