RE: [PHP-WIN] Wap vs. PHP
| From: | Andreas Lange | Date: | Fri, 10 Nov 2000 12:30:32 +0000 |
| Subject: | RE: [PHP-WIN] Wap vs. PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3774@lists.php.net to get a copy of this message | ||
Hi,
Here an working example code snippet:
<------ snip ------>
<?
header("Content-type: text/vnd.wap.wml"); // here comes WML
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // a date in the past to
prevent caching
header("Last-Modified: " . gmdate("D, d M Y H:i:s"). " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xmlversion=\"1.0\"?>\n";
echo "<!DOCTYPE wml PUBLIC\"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<card id="start" title=" " ontimer="#page2">
<timer value="15"/>
<p align="center">
<img src="picture.wbmp" alt="logo"/>
</p>
</card>
<card id="page2" title="Welcome">
<p align="center">
here.
</p>
</card>
</wml>
<------ snip ------>
CodeDuck
> -----Original Message-----
> From: Nold, Mark [mailto:Mark.Nold@normandy.com.au]
> Sent: Friday, November 10, 2000 2:10 AM
> To: 'sillyboy@mindless.com'; PHP Windows List
> Subject: RE: [PHP-WIN] Wap vs. PHP
>
>
> ------------------------------------------------------------------
> ----------
> -----------------
> Disclaimer: The information contained in this email is intended
> only for the
> use of the person(s) to whom it is addressed and may be confidential or
> contain legally privileged information. If you are not the intended
> recipient you are hereby notified that any perusal, use, distribution,
> copying or disclosure is strictly prohibited. If you have received this
> email in error please immediately advise us by return email at
> postmaster@normandy.com.au and delete the email document without making a
> copy.
> ------------------------------------------------------------------
> ----------
> -----------------
> I know nothing about WML but shouldnt you put the Content-Type in with a
> Header() call?
>
>
> Mark Nold
> markn@enspace.com <mailto:markn@enspace.com>
> Senior Consultant
>
> Change is inevitable, except from vending machines.
>
>
>
> -----Original Message-----
> From: Robin Bolton [mailto:sillyboy@mindless.com]
> Sent: Friday, November 10, 2000 4:37 AM
> To: PHP Windows List
> Subject: RE: [PHP-WIN] Wap vs. PHP
>
>
> Put the following within your PHP script in a place where it will print
> within your <head> declaration:
>
> print "<meta http-equiv=\"Content-Type\" content=\"text/html;
> charset=iso-8859-1\">";
>
> You can then change the content type to text/wml (or whatever the
> appropriate mimetype is).
>
> That should tell the emulator that the document is of whatever
> mimetype you
> specify, and it will deal with it appropriately.
>
> -----Original Message-----
> From: Michael S. Norum [mailto:lostsoul@start.no]
> Sent: November 9, 2000 1:24 PM
> To: PHP Windows List
> Subject: [PHP-WIN] Wap vs. PHP
>
>
> i'm trying to write a wml file for wap that will enable users to store
> information on my server. i want to use php on the server side to
> use store
> the info. however, i've written a php script that generates a wml file
> instead of a html file, but the wap browser won't accept it.
>
> when viewing the source of the document in the wap emulator it
> says that the
> document received is of html/text format... do you have any idea of how i
> can solve this?
>
> any help appreciated
>
> Michael
>
> "Alle kan stave REX BOMBASA"
>
> http://denandresiden.cjb.net
> http://www.geocities.com/zymosis2000
>
>
> --
> 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
>