RE: [PHP] Trouble with getimagesize

From: Date: Tue, 24 Jul 2001 22:42:00 +0000
Subject: RE: [PHP] Trouble with getimagesize
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59443@lists.php.net to get a copy of this message
What does $UPLOADFILE resolve to? getImageSize() didn't support URLs until 4.0.5, so if you're trying to use a URL in PHP3, it won't work. --kurt > -----Original Message----- > From: Patrick J. Militzer [mailto:pmilitzer@metromls.com] > Sent: Tuesday, July 24, 2001 9:39 AM > To: Php3 > Subject: [PHP] Trouble with getimagesize > > > Hi there, > > Having problem with a snippet of code, the code works in php4 > but not in php3. > > Here is the snippet: > > $imagesize = getimagesize($UPLOADFILE); > // print $imagesize[0] . " " . $imagesize[1]; > if($imagesize[0] > 360 or $imagesize[1] >252 or > $UPLOADFILE_size > 51024) > { // Image Size Too Large > header("Location: > toolarge.html?HEIGHT=$imagesize[1]&WIDTH=$imagesize[0]&FS=$UPL > OADFILE_size" ); > > } > > When we take out the comments by the print statement we get > the image size of the file we are uploading and they are 960, > 660. The If statement should catch it and redirect to the > toolarge.html page. It does do this in the php4 but not in php3. > > Any ideas > > Thanks in advance. > > Pat > > Pat Militzer > Tech Support Supervisor > Metro/MLS Inc. > 11430 W North Ave > Wauwatosa, WI 53226 > 414-778-5400 ext. 124 > Fax 778-6143 > email: pmilitzer@metromls.com > web site: www.metromls.com > www.wihomes.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net To contact the list > administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#59443) next »