RE: [PHP-WIN] Problem displaying images on windows
| From: | Ignatius Teo | Date: | Tue, 05 Dec 2000 22:53:54 +0000 |
| Subject: | RE: [PHP-WIN] Problem displaying images on windows | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4315@lists.php.net to get a copy of this message | ||
It works on Apache 1.3.12, Win98, php4.04dev so it should work on your config.
Perhaps it is not finding the image in the current directory? Try specifying the full path:
eg.
readfile("c:/inetpub/wwwroot/images/image.gif");
Ignatius
> -----Original Message-----
> From: Daz [mailto:clark.darren@btinternet.com]
> Sent: Wednesday, 6 December 2000 02:06
> To: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] Problem displaying images on windows
>
>
> Interesting anyone got it to work with apache, here some more
> information:
>
> Windows NT 5.0 build 2195
> Apache/1.3.14
> PHP Version 4.0.4-dev or PHP Version 4.03
>
> currently image output does not work with this configuration
> please reply with a working setup so I can alter mine thankyou
>
> and if so which version I'm using
> "ENVAIN Bernard" <ENVAINBR@cic-i.com> wrote in message
>
> news:15808BE72FB2D311A616009027B68877D605FD@cibsd-exc.lil.cic-i.net...
> It works with :
> PHP 4.0.2 + IIS 4 + Win NT 4
> and
> PHP 4.0.2 + IIS 5 + W2K
>
> Cordially.
> BE.
>
> -----Message d'origine-----
> De: Daz [mailto:clark.darren@btinternet.com]
> Date: mardi 5 décembre 2000 13:26
> À: php-windows@lists.php.net
> Objet: [PHP-WIN] Problem displaying images on windows
>
>
> On linux using 4.0.3pl
>
> <?php
> header("Content-type: image/gif");
> readfile("image.gif");
> ?>
>
> Displays the image when the php file is called.
>
> But on windows using 4.0.4-dev and tried 4.0.3pl
>
> no joy just a broken picture icon.
>
> Has anyone got a solution for this or is this a bug in the winversion?
>
> If anyone get's it to work on their version please could you
> reply with the
> build they are using :)
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>