Tuesday, April 17, 2012

Show Image to the browser


This is the code for image upload in filesystem through PHP.

This will gave you the source of file ,Name of file ,type of file and the size of image file.

< ?php

if(move_uploaded_file($_FILES["file"]["tmp_name"],

"image/" . $_FILES["file"]["name"]))

{

$t= "image/" . $_FILES["file"]["name"];

? >

code for image show......

move_uploaded_file this is the php code for image upload to a folder....

$_FILES["file"]["name"] this is the name of php uploaded file.....

$_FILES["file"]["size"] this is the size php uploaded file..

$_FILES["file"]["type"] this is the size php uploaded file..

here file is the name of the browse field.


0 comments:

Post a Comment