Re[2]: [PHP] Getting the filesize of an image?
| From: | faeton | Date: | Sat, 01 Dec 2001 07:41:03 +0000 |
| Subject: | Re[2]: [PHP] Getting the filesize of an image? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76299@lists.php.net to get a copy of this message | ||
Hello Uchendu,
Maybe comething like that would do that:
<?
$fo = implode("\n", file("http://www.foo.net/image.jpg"));
$size = strlen($fo);
?>
Eh? :)
UN> Not the dimensions. Of course I knew that.
UN> I want the file size, as in 'how many bytes'. GetImageSize() doesn't do
UN> that.
------------------------------------------------
Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) faeton@xemichat.com www.xemichat.com
::: #95# Format C: complete. Format another? (Y/Y) :::