Re: help !!!why my wml can't work with php?

From: Date: Mon, 06 Nov 2000 09:32:11 +0000
Subject: Re: help !!!why my wml can't work with php?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23863@lists.php.net to get a copy of this message
Funny that the Header doesn't work. Perhaps it's case sensitive? Make the Type uppercase eg. header("Content-Type: text/vnd.wap.wml"); This is the header I always use and it works fine. JKS ----- Original Message ----- From: forestwater <forestwater@sina.com> To: <php-general@lists.php.net> Sent: Monday, November 06, 2000 9:18 AM Subject: [PHP] help !!!why my wml can't work with php? > There is a problem with wml and php. > This is the source. > <?php > header("Content-type:text/vnd.wap.wml"); > echo("<?xml version=\"1.0\"?>\n"); > echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n "); > echo ("<wml> \n<card>\n <p>\n"); > echo ("hello world\n"); > echo ("</p>\n</card>\n</wml>\n"); > ?> > > but it can't work . > I test it with the phone.com up.simulator > The info it response is :"the content-type error" > "content-type:text/html is found ." > > > Please help me > Thank you very much. > ______________________________________ > > =================================================================== > ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn > ÐÂÀËÍÆ³ö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ > http://sms.sina.com.cn/ > > -- > 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 (#23863) next »