php-general | 2001072

RE: [PHP] Trouble with getimagesize From: Kurt Lieber (php <email protected>)
Date: 07/24/01

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 <email protected>]
> 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 <email protected>
> web site: www.metromls.com
> www.wihomes.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail:
> php-general-help <email protected> To contact the list
> administrators, e-mail: php-list-admin <email protected>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>