Re: getimagesize

From: Date: Wed, 02 Apr 2003 01:18:18 +0000
Subject: Re: getimagesize
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141905@lists.php.net to get a copy of this message
php 4.3.1. I got it working, this is what i had to use: $imagewidth = getimagesize($_FILES ["image"]["tmp_name"]); if($imagewidth[0] >= "1042") { $img_width = "1024"; } else { $img_width = "*"; } i guess i had to add the tmp_name :) Thanks for the help. cheers, - Sebastian ----- Original Message ----- From: "daniel" <daniel@electroteque.org> | what php version ? try putting $_SERVER['PHP_SELF'] in action aswell | | >===== Original Message From "Sebastian" <sebastian@dslr.net> ===== | >nope, still get Warning: getimagesize(Array) | >i've tried everything and it just doesn't get the form data :| | > | >cheers, | >- Sebastian | > | >----- Original Message ----- | >From: "daniel" <daniel@electroteque.org> | > | > | >| try removing that mime check , and put this to lower case encType | >| try <INPUT name=image type=file> for now | >| , let me know | |

« previous php.general (#141905) next »