Wednesday, December 26, 2012

Uploading file using PHP

Uploading files to the server.



Now create a page sms2.php and type the code shown below. After that run page1.php. As shown in the code below the file is uploded to the folder “upload”. So before running the page create the folder “upload” in the root folder of the server. Now run the php page page1.php and select the file and click “SAVE” button.


On clicking the save button your photo/ any other file you had selected will be in the upload folder and you will get the output as below.




No comments:

Post a Comment