You don't need filesize().
$fp = fopen('address_to_image','r');
while(!feof($fp))
{ $image .= fread($fp,10000); }
Something like that will work...
---John Holmes...
----- Original Message -----
From: "Marcus Fleige" <[EMAIL PROTECTED]>
To: "PHP-Mailinglist" <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 11:29 AM
Subject: [PHP-DB] fetching image by url and storing in mysql
hi there,
i would like to get an image from an web-url and store it into
mysql-db.
inserting local images or images i upload to the server is no
problem, but handling urls as images seems quite difficult..
now, for fopen() i need the filesize() of the image, but that command
does not work on urls...
anyone got an idea how to solve this, perhaps even without writing an
temporary image to disk? code snippets anyone?
thanks so far,
greetings from germany!
marcus
--
^v^
[EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php