[PHP] WML/WAP and PHP

2001-01-16 Thread Rick Hodger
Here's a fun little thing I discovered, possibly a bug in PHP itself? To output a WAP page you must output a content-type header else the phone's browser won't recognise the page. Dead simple. Use: header("Content-type: text/vnd.wap.wml"); And all is well and good as long as you use echo/printf

Re: [PHP] WML/WAP and PHP

2001-01-16 Thread Pavel Kalian
edict what you want to do. text/html is set as default simply because it's the type most users in most cases need. Pavel - Original Message - From: "Rick Hodger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 2:10 PM Subject: [PHP] WML/WA

Re: [PHP] WML/WAP and PHP

2001-01-16 Thread Rick Hodger
"Pavel Kalian" <[EMAIL PROTECTED]> wrote in message 028e01c07fc1$dffdecf0$8361d4c2@pavelk">news:028e01c07fc1$dffdecf0$8361d4c2@pavelk... > Hi Rick, > you are not doing anything wrong. You just have to send the proper > content-type depending on what you're outputing. For example if you want to >

RE: [PHP] WML/WAP and PHP

2001-01-16 Thread Jon Haworth
y *that* much attention to it at the time! HTH Jon -Original Message- From: Rick Hodger [mailto:[EMAIL PROTECTED]] Sent: 16 January 2001 16:02 To: [EMAIL PROTECTED] Subject: Re: [PHP] WML/WAP and PHP "Pavel Kalian" <[EMAIL PROTECTED]> wrote in message 028e01c07fc1$d

Re: [PHP] WML/WAP and PHP

2001-01-16 Thread Pavel Kalian
st.php X-Powered-By: PHP/4.0.4 Content-type: text/vnd.wap.wml Hello world! C:\> Pavel - Original Message - From: "Rick Hodger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 5:02 PM Subject: Re: [PHP] WML/WAP and PHP >

Re: [PHP] WML/WAP and PHP

2001-01-16 Thread Chris Adams
On 16 Jan 2001 05:05:18 -0800, Rick Hodger <[EMAIL PROTECTED]> wrote: >Here's a fun little thing I discovered, possibly a bug in PHP itself? > >To output a WAP page you must output a content-type header else the phone's >browser won't recognise the page. Dead simple. Use: > >header("Content-type:

Re: [PHP] WML/WAP and PHP

2001-01-17 Thread Rick Hodger
"Pavel Kalian" <[EMAIL PROTECTED]> wrote in message 008b01c07fd8$0ce0daa0$8361d4c2@pavelk">news:008b01c07fd8$0ce0daa0$8361d4c2@pavelk... > are you sure that there's nothing in the file in before you call the > header() function? The situation you describe could happen if there was an > empty line

Re: [PHP] WML/WAP and PHP

2001-01-17 Thread Rick Hodger
Chris Adams <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On 16 Jan 2001 05:05:18 -0800, Rick Hodger <[EMAIL PROTECTED]> wrote: > >Here's a fun little thing I discovered, possibly a bug in PHP itself? > > > >To output a WAP page you must output a content-type

Re: [PHP] WML/WAP and PHP

2001-01-17 Thread Thierry Coopman
At 9:08 AM -0800 1/16/01, Chris Adams wrote: >On 16 Jan 2001 05:05:18 -0800, Rick Hodger <[EMAIL PROTECTED]> wrote: > >[0] neat hack - use ob_content_length() to tell when you've output almost as >much data as the phone can handle (find this by doing a browser detect) so you >can stop looping ove