Re: PHP and WAP

From: Date: Tue, 23 May 2000 23:08:47 +0000
Subject: Re: PHP and WAP
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-19330@lists.php.net to get a copy of this message
If you use PHP 4.0 (which you should), you can edit the php.ini file and modify the default mime type to be text/vnd.wap.wml: default_mimetype = "text/vnd.wap.wml" Zeev At 02:58 24/05/2000 , Robert King wrote:
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
-- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#19330) next »