[PHP-DB] Problem in programming PHP with WML

2002-02-25 Thread ªüYam

I'm doing a project involving in WAP  WEB applications which complementary
with Mysql database. However, when i try to compile the wml page, it goes
error. The page is about combining the scripts of wml and php so as to
access the database and returning the result to the client-sided.
I don't know why??That comes out a Err Msg about Unsupported type:
text/html .
Is there anyone can help me please??
thx a lot



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Problem in programming PHP with WML

2002-02-25 Thread Paul Burney

on 2/25/02 11:32 AM, ªüYam at [EMAIL PROTECTED] appended the following
bits to my mbox:

 I don't know why??That comes out a Err Msg about Unsupported type:
 text/html .

I've never done any WML scripting, but the error message offers a big clue.
PHP by default sends a Content-type header of text/html.  Evidently, WAP
enabled devices don't like that.

Try something like this:

Header('Content-type: text/vnd.wap.wml');

Not sure about that content type, but it was what I found on a simple google
search.

HTH.

Paul

?php
while ($self != asleep) {
$sheep_count++;
}
?



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php