<div style='background-color: none transparent;'></div>
Home » » File Upload Script

File Upload Script

if ( isset( $_FILES['fupload'] ) ) {

print "name: ". $_FILES['fupload']['name'] ."
";
print "size: ". $_FILES['fupload']['size'] ." bytes
";
print "temp name: ".$_FILES['fupload']['tmp_name'] ."
";
print "type: ". $_FILES['fupload']['type'] ."
";
print "error: ". $_FILES['fupload']['error'] ."
";

if ( $_FILES['fupload']['type'] == "image/gif" ) {

$source = $_FILES['fupload']['tmp_name'];
$target = "upload/".$_FILES['fupload']['name'];
move_uploaded_file( $source, $target );// or die ("Couldn't copy");
$size = getImageSize( $target );

$imgstr = "

$imgstr .= "src=\"$target\" alt=\"uploaded image\" />

";

print $imgstr;
}
}
?>
Share this article :
 
Copyright © 2011. B.Sc B.Tech MCA Ploytechnic Mini,Main Projects | Free Main Projcets Download | MCA |B.tech . All Rights Reserved
Company Info | Contact Us | Privacy policy | Term of use | Widget | Advertise with Us | Site map
Template Modify by Creating Website. Inpire by Darkmatter Rockettheme Proudly powered by Blogger