RE: [PHP] Running WML (WAP services) under PHP
i think that php sends out headers showing that the page is html.not sure bout this, but you might have to send a diff header.. -Original Message- From: M [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 09, 2001 5:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Running WML (WAP services) under PHP Hello, I am trying to develop some WML apps using PHP. To run WML apps into my local Apache (win98) server, I added AddType application/x-httpd-php .wml into httpd.conf. This works ok when calling directly from netscape http://localhost/mywml.wml , treating script like a true PHP program. BUT when writing a REAL WML app. (cards and so) and trying to run on NOKIA simulator (by calling URL), it shows a parse error on line 1 (for all scripts). The same script, when executed in file mode on NOKIA sim (that is first load .wml file and then press SHOW button) , works fine, proving the error is not in script, but in way PHP interpret .WML pages. I suspect PHP introduces some invisible code (just 1 byte?) or something at beginning of .WML page. Thanks for your attn. Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Running WML (WAP services) under PHP
Hi i think that php sends out headers showing that the page is html.not sure bout this, but you might have to send a diff header.. This is true - you should send a content type of either text/x-wap.wml or text/vnd.wap.wml (for WML 1.0 and 1.1 respectively)... header('Content-Type: text/x-wap.wml'); PHP doesnt insert anything extra into the output that isn't in the script you write - check there is no leading whitespace before the first '?' (same applies in all include files) -- Shane -Original Message- From: M [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 09, 2001 5:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Running WML (WAP services) under PHP Hello, I am trying to develop some WML apps using PHP. To run WML apps into my local Apache (win98) server, I added AddType application/x-httpd-php .wml into httpd.conf. This works ok when calling directly from netscape http://localhost/mywml.wml , treating script like a true PHP program. BUT when writing a REAL WML app. (cards and so) and trying to run on NOKIA simulator (by calling URL), it shows a parse error on line 1 (for all scripts). The same script, when executed in file mode on NOKIA sim (that is first load .wml file and then press SHOW button) , works fine, proving the error is not in script, but in way PHP interpret .WML pages. I suspect PHP introduces some invisible code (just 1 byte?) or something at beginning of .WML page. Thanks for your attn. Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]