Re: using images from another site

From: Date: Sun, 03 Dec 2000 17:20:31 +0000
Subject: Re: using images from another site
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-39914@lists.php.net to get a copy of this message
Try this: $fh = fopen($filename, "r"); fpassthru($fh); // closes $fh automagically Let me know what happens :) Toby Butzon [ criticism spurs improvement ] ----- Original Message ----- From: "Scott Guthrie" <scott@colomar.com> To: <php-dev@lists.php.net> Sent: Sunday, December 03, 2000 11:47 AM Subject: [PHP-DEV] using images from another site I have a secure site (https) that needs to display images found on another (unsecure site). Netscape doesn't appreciate mixing secure and insecure data, so I need to pull the image over and output it from the secure site. I have tried many things, like 'copy', the fopen,fread,echo track and even readfile("http://colomar.com/creditcard.gif") for example. The readfile is close, but I get the output in binary output to the screen instead of a image. (line starts out as: GIF89a}µÞ¥ÆGIF89a}µÞ¥Æ....) If I could figure out how to send the image file to the browser as an image from PHP, I'd have this issue solved. Any ideas? Thanks, -Scott- The COLOMAR Group R. Scott Guthrie 6382 Brightstar Drive Colorado Springs, CO. 80918 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#39914) next »