Re: PHP and WAP

From: Date: Tue, 23 May 2000 22:36:25 +0000
Subject: Re: PHP and WAP
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-19333@lists.php.net to get a copy of this message
This is a good point. As almost all our pages are dynamically generated we also ran in this problem. Our quick'n'dirty approach is, just to send the correct header information : header("Content-Type: text/vnd.wap.wml"); hope this helps, dieter Robert King schrieb: > Hi, > I'm attempting to use PHP to generate WAP(WML) pages. As far as I can see, > it shouldn't make a right lot of difference. > > My problem is this though - for the WAP browser to function correctly, mime > types must be added to httpd/conf/mime.types: > text/vnd.wap.wml, and some others. > > This works fine - the WAP browser will then view my pages - until this: > AddType application/x-httpd-php .wml > > Now the PHP engine will process my .wml files, but it defaults the mime type > back to text/html, which the WAP browser complains about, and won't display. > > Can anyone suggest a way to stop PHP overriding the mime.types file, or just > to alter it to default to wml instead (If I had to, I could run a separate > apache to serve out the WML) > > thanks, > rob. > > Robert King > Core Technology. > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#19333) next »