PHP and WAP
| From: | Robert King | Date: | Wed, 24 May 2000 00:58:27 +0000 |
| Subject: | PHP and WAP | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19327@lists.php.net to get a copy of this message | ||
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.