Re[2]: [PHP] Running WML (WAP services) under PHP
| From: | Gianluca Baldo | Date: | Sun, 09 Dec 2001 22:42:14 +0000 |
| Subject: | Re[2]: [PHP] Running WML (WAP services) under PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77171@lists.php.net to get a copy of this message | ||
Try
<?
header("Content-type: text/vnd.wap.wml;charset=iso-8859-1");
echo "<?xml version=\"1.0\"?>\n";
?>
Cheers,
Gianluca
JD> i think that php sends out headers showing that the page is html.....not
JD> sure bout this, but you might have to send a diff header......
JD> -----Original Message-----
JD> From: M [mailto:mavemus@yahoo.com.br]
JD> Sent: Sunday, December 09, 2001 5:08 PM
JD> To: php-general@lists.php.net
JD> Subject: [PHP] Running WML (WAP services) under PHP
JD> Hello, I am trying to develop some WML apps using PHP.
JD> To run WML apps into my local Apache (win98) server, I added
JD> AddType application/x-httpd-php .wml
JD> into httpd.conf. This works ok when calling directly from netscape
JD> http://localhost/mywml.wml ,
JD> treating script like a true PHP program.
JD> BUT.... when writing a REAL WML app. (cards and so) and trying to run on
JD> NOKIA simulator (by calling URL), it shows a parse error on line 1 (for
JD> all scripts).
JD> The same script, when executed in file mode on NOKIA sim (that is first
JD> load .wml file and then press SHOW button) , works fine, proving the
JD> error is not in script, but in way PHP interpret .WML pages.
JD> I suspect PHP introduces some invisible code (just 1 byte?) or something
JD> at beginning of .WML page.
JD> Thanks for your attn.
JD> Miguel
JD> --
JD> PHP General Mailing List (http://www.php.net/)
JD> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
JD> For additional commands, e-mail: php-general-help@lists.php.net
JD> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel./Fax +34 934549324
webmaster@phpauction.org
http://www.gianlucabaldo.com
http://www.phpauction.org