Your Ad Here
0

How to store the uploaded file to the final location?

Posted by The Blogger on 12:49 PM in
Answer:

move_uploaded_file ( string filename, string destination)

This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP’s HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by destination.

If filename is not a valid upload file, then no action will occur, and move_uploaded_file() will return FALSE.

If filename is a valid upload file, but cannot be moved for some reason, no action will occur, and move_uploaded_file() will return FALSE. Additionally, a warning will be issued.



tags: php interview questions and answers, php interview question How to store the uploaded file to the final location, How to store the uploaded file to the final location

0 Comments

Post a Comment

Your Ad Here

Copyright © 2009 Interview Questions and Answers