Re: Problem in programming PHP with WML
| From: | Paul Burney | Date: | Mon, 25 Feb 2002 17:14:25 +0000 |
| Subject: | Re: Problem in programming PHP with WML | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17270@lists.php.net to get a copy of this message | ||
on 2/25/02 11:32 AM, ªüYam at yam1234@sinaman.com 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++;
}
?>