[PHP] Reading remote image into a file and displaying..

2003-02-20 Thread Chad Day
I'm trying to get weather channel information without using their form to submit the zip code .. the url format is : http://oap.weather.com/fcgi-bin/oap/generate_magnet?loc_id=$ZIPcode=689861; destination=$ZIP so I tried: $weatherfile =

Re: [PHP] Reading remote image into a file and displaying..

2003-02-20 Thread Mincu Alexandru
use header(Content-type: image/jpeg); and then you can echo it's content. On Thu, 2003-02-20 at 17:30, Chad Day wrote: I'm trying to get weather channel information without using their form to submit the zip code .. the url format is :

Re: [PHP] Reading remote image into a file and displaying..

2003-02-20 Thread Michael Mulligan
More specifically (since I just dealt with this issue myself), use fpassthru (and be sure not to fclose the file pointer as it's automatically done by fpassthru) On 02/20/03 12:47 PM, Mincu Alexandru [EMAIL PROTECTED] wrote: use header(Content-type: image/jpeg); and then you can echo it's