PHP Tutorials
Php What isPHP INI Tutorials
Php ini What isThe $_FILES Variables contains information regarding data uploaded to the server Via the POST method.
$_FILES ['file-name']['name']: The name of the file as uploaded from the client To the server.
$_FILES ['file-name']['type']: This variable is used to which type of file has been move to server.
$_FILES['file-name']['size']: The byte size of the uploaded file.
$_FILES['file-name']['tmp_name']: When you upload a file from the form ,This files has been move to temp directory and then will move to server.
$_FILES['upload-name']['error']: An upload status code.
The Following form is used to upload file to server .
we must use to encode type or "enctype" attribute File Upload Form otherwise file will not upload to server.
File Upload From Post method will suport only .Get Method will not Support
Following Php Script Used to upload file to server.
This Variable we have assigned server folder name which is used to store the file.
This Variable we have assigned server Path name.
This function used to Move the file to server.
|
Tweet |
|
|