RE: [PHP] WML/WAP and PHP

From: Date: Tue, 16 Jan 2001 16:03:04 +0000
Subject: RE: [PHP] WML/WAP and PHP
Groups: php.general 
Request: Send a blank email to php-general+get-34831@lists.php.net to get a copy of this message
I seem to remember reading something very recently, possibly on this list, about WML. IIRC, if you drop out of PHP at any point the rest of the document gets treated as text/html. Try something like <?php header("Content-type: text/vnd.wap.wml"); echo("<wml><card><p>Hello world!</p></card></wml>"); ?> and see if it works. Sorry to be vague, but I didn't pay *that* much attention to it at the time! HTH Jon -----Original Message----- From: Rick Hodger [mailto:rick@domainsbuy.com] Sent: 16 January 2001 16:02 To: php-general@lists.php.net Subject: Re: [PHP] WML/WAP and PHP "Pavel Kalian" <pkalian@ssw.cz> wrote in message 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 > produce a gif image you have to use header("Content-type: image/gif"); > There's nothing wrong with it as PHP can't predict what you want to do. > text/html is set as default simply because it's the type most users in most > cases need. Yes, I know that. But what I'm saying is that eg. <?php header("Content-type: text/vnd.wap.wml"); ?> <wml> <card> <p>Hello world!</p> </card> </wml> ...gets put out with a text/html content type as opposed to the specified text/vnd.wap.wml. Having said that, I just tried it on the linux machine and it worked fine. A Windows thing? -- Rick Hodger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#34831) next »