You don't need filesize().

$fp = fopen('address_to_image','r');
{ $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 

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!


PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to