HELP! WAP/WBMP + PHP
| From: | Anders Dannberg | Date: | Fri, 08 Sep 2000 04:37:01 +0000 |
| Subject: | HELP! WAP/WBMP + PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15825@lists.php.net to get a copy of this message | ||
Hello all! I have the following example of a code which works just fine when
i'm using my wap-phone:
<?php
header("content-type:text/vnd.wap.wml");
print '<?xml version="1.0"?>';
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">';
?>
<wml>
<card id="cardone" title="Search">
Welcome to the wap-page
</card>
</wml>
However, when adding a:
<img src="symicons16.wbmp"/> it won'y display using the wap-phone (it will
work however, when using WAP-emulators like gelon.net).
There is nothing wrong with the picture or type of it as i've tried various.
Now, my first thought is i should add a
"header("content-type:image/vnd.wap.wbmp"). However when i add this just
under the first line (header...text/vnd.wap.wml) it won't work either... (no
error message when wapping to the site, it just exists).
Does anyone know what i'm doing wrong here?
If, and where, should i add the header("content-type:image/vnd.wap.wbmp")
line??
Thanks in advance.
Anders