Advertisements
Advertisements
प्रश्न
Explain concepts of HTTP Uploading process.
संक्षेप में उत्तर
उत्तर
- File upload is the best feature to select one file from the local machine to server machine. Form tag is used to mention a method as POST or GET and encrypt attribute mentioned as “multipart/form-data”.
- In the <Input> tag mention type=”file” attribute shows the input field as a file-select control, with a “Browse” button next to the input control.
- The form above sends data to a file called “Student_photo_upload.php”.
- First, ensure that PHP is configured to allow file uploads.
- In Server machine “php.ini” file, search for the file_uploads directive, and set it to On: “file_upIoads = On”
- After submitting the upload button the request reaches to Student_photo_upload.php file. In the file $_FILES variable collects all uploaded file information such as the name of the file, size of the file and extension of the file etc.
- All the details are checked thoroughly and the errors are saved in an array variable.
- The file finally moves under the image directory if the array error variable is empty.
shaalaa.com
HTML Forms
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
Trace the output of following html code.
‹!DOCTYPE html›
‹html›
‹head›
‹title›Heading tags‹/title›
‹/head›
‹body›
‹h1 align=left›Information Technology‹/h1›
‹hr›
‹h2 align=center›XI Standard‹/h2›
‹h3 align=right›Division‹/h3›
‹/body›
‹/html›
In HTML form <input type=”text”> is used to ______.
The no. of parameters used by fclose() function.
PHP is a ______ programming language.
List out HTML control to support PHP language.
Write Syntax of Text box in HTML,
Write any two rules for input HTML.
Differentiate Get and Post Method.
Write short notes on File handling.
Explain the concept of Submit and Reset buttons in HTML forms.