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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to