Re: PHP and wml help
| From: | D. Meehan | Date: | Wed, 12 Jul 2000 18:25:03 +0000 |
| Subject: | Re: PHP and wml help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6210@lists.php.net to get a copy of this message | ||
I have successfully created a php3 page which outputs wml. I'm not sure why
you are going to a .wml page which then calls a php page though. You can
call a php page from a cell phone that outputs wml directly. What other wml
code are you outputting? Also, make sure you have your deck properly coded.
The code I'm pushing out for the DocType is slightly different than yours.
I'm not sure what the impact is. If you want more example code, you can
e-mail me directly so that we don't send excess e-mail to the list.
echo('<?xml version="1.0"?>');
echo('<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
');
Hope this helps.
Dave M.
http://www.nxg2.com
----- Original Message -----
From: Barry Logan <blogan@blue-cove.com>
To: <php-general@lists.php.net>
Sent: Wednesday, July 12, 2000 2:08 PM
Subject: [PHP] PHP and wml help
> Ive created a simple PHP/MySQL/wml program which works fine on the
> Klondike WML browser.
>
> First a .wml page is displayed which calls a .php3 page that returns
> formatted MySQL stuff.
>
>
>
> On the Ericsson R380 emulator at gelon.net the .wml page displays but
> the .php3 generate the following error:
>
> Error
> no WML page found
> code: 200
> Content-Type: text/html
>
> I've tried several WAP phone emulators and none will work.
> Has anyone successfully used PHP with a WAP phone or emulator?
>
> Here is the PHP code:
>
> <?php
> echo "<?xml version='1.0' encoding='ISO-8859-1'?>";
>
> echo "<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN'
> 'http://www.wapforum.org/DTD/wml_1.1.xml'>";
> ?>
>
>
> Thanks for your help,
>
>
> --
> Barry Logan blogan@blue-cove.com
>