note 28820 added to function.getimagesize
| From: | jasendorfATlcountyDOTcom at rack1 dot php dot net | Date: | Fri, 24 Jan 2003 21:44:36 +0000 |
| Subject: | note 28820 added to function.getimagesize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42707@lists.php.net to get a copy of this message | ||
I just found out, after much trial and error, on WinNT, PHP 4.2.3, that you must specify a
particular part of the $_FILES info on uploaded images for this function to work.
For instance, if you have the form input:
<INPUT name="image" type="file">
And you want to run:
$img_sz = getimagesize( $image );
And you have globals off, you must call it like this:
$img_sz = getimagesize( $_FILES['image']['tmp_name'] );
Or something similar... Hope this helps someone.
--
http://www.php.net/manual/en/function.getimagesize.php
http://master.php.net/manage/user-notes.php?action=edit+28820
http://master.php.net/manage/user-notes.php?action=delete+28820
http://master.php.net/manage/user-notes.php?action=reject+28820