PHP script not working

software development

#1

The folowing script should output image name and width but it only shows: file: , has width:.

I need help please.

<?

if(isset($_POST[image]))
{

$size = GetImageSize($file);
$width = $size[0] ;
$height = $size[1] ;

echo “file: $file_name, has width:$width”;
}
?>


#2

Try this:

[code]


<?php if(isset($_POST['image'])) { $tmpName = $_FILES['file']['tmp_name']; $origName = $_FILES['file']['name']; $size = getimagesize($tmpName); $width = $size['width'] ; $height = $size['height']; echo "file: $origName, has width: $width"; } ?>[/code] -- [url=http://jessey.net][b]si-blog[/b][/url] -- [b]Max[/b] discount on [i]any[/i] plan with promocode [url=http://dreamhost.com/r.cgi?53419|SCJESSEYTOTAL][b]SCJESSEYTOTAL[/b][/url]