RE: [PHP] HELP! WAP/WBMP + PHP
| From: | Patrick Lynch | Date: | Fri, 08 Sep 2000 10:40:15 +0000 |
| Subject: | RE: [PHP] HELP! WAP/WBMP + PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15852@lists.php.net to get a copy of this message | ||
Just a small thought... The caching on WAP phones are very strict when it
comes to images. If you are using a nokia or Siemens, you can empty the
cache.
Your WML on the first version is not strictly correct either:
<wml>
<card id="cardone" title="Search">
Welcome to the wap-page
</card>
</wml>
should be
<wml>
<card id="cardone" title="Search">
<p>Welcome to the wap-page</p>
</card>
</wml>
The <p> tags are not optional. Some phones will try and display the content
anyway but some will give a compile error.
If you are sure that the image is a valid wbmp file and the content type is
correct on the server, try changing the <img/> tag to <img
src="symicons16.wbmp?dsdfs"/>. This will ensure that the image cannot be
cached.
I use the UP.SDK from phone.com for testing and i find that it works well. I
also use the nokia WAP emulator because the Nokia WAP implementation is a
bit different.
Good Luck!!
/Patrick
-----Original Message-----
From: Anders Dannberg [mailto:anders.dannberg@edk.se]
Sent: 08 September 2000 05:37
To: php-general@lists.php.net
Subject: [PHP] HELP! WAP/WBMP + PHP
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net