RE: [PHP] HELP! WAP/WBMP + PHP
| From: | Peter Johansson | Date: | Sat, 16 Sep 2000 13:24:46 +0000 |
| Subject: | RE: [PHP] HELP! WAP/WBMP + PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17026@lists.php.net to get a copy of this message | ||
> The thing is that i've already added the MIME type to the config file. It
> still refuses to work.
>
> Could you give me an exampleo n how would send the header if i
> serve it from PHP script?
Hi, I'm jumping in with a brief example here :)
You can try something like this, just to make sure the picture is sent with
a correct content-type:
<?php
// image.php
header("Content-type: image/vnd.wap.wml");
readfile("/path/to/image.wbmp");
?>
Then in your wml-page, you should use "image.php" as source, like this:
<img src="image.php" alt="asp sucks"/>
The image.php script shouldn't be needed though, if you're server is
configured with correct MIME-type for WBMP-images.
./peter; echo "Svenska PHP-listan @ www.kanalen.org"