Re: failure notice
| From: | Chris Lee | Date: | Sun, 03 Dec 2000 06:25:31 +0000 |
| Subject: | Re: failure notice | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28478@lists.php.net to get a copy of this message | ||
create a file called dspimage.inc and place it in the secure dir.
dspimage.inc
<?
Header("Content-Type: image/gif");
readfile("{dir path}/$image_name");
?>
referance this file like this
somesecurefile.php
<?
echo "<img src='dspimage.inc?image_name=somenonsecurepic.gif'>\n";
?>
Chris Lee
Mediawaveonline.com
In article <3.0.3.32.20001203150253.00745ec4@colomar.com>,
scott@colomar.com wrote:
> 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}=B5=DE=A5=C6GIF89a}=B5=DE=A5=C6....)
>
> 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
>
> The COLOMAR Group R. Scott Guthrie
> 6382 Brightstar Drive
> Colorado Springs, CO. 80918
>