1.

To check whether a file was uploaded, you look in the _______ superglobal array.(a) $_FILES(b) $_DOCS(c) $_DOCUMENTS(d) $_FOLDERSI have been asked this question in an internship interview.Enquiry is from Image Uploading Ability topic in portion Objects and Databases in PHP of PHP

Answer»

Right answer is (a) $_FILES

Easiest explanation: Whenever a FILE is uploaded via an HTML form, that file is stored in TEMPORARY memory and INFORMATION about the file is passed in the $_FILES superglobal.



Discussion

No Comment Found

Related InterviewSolutions