|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-08-28 02:37 UTC] tf at tfromm dot com
i want to parse .wml sites with php, the problem is the default
header.
when i not have added
AddType application/x-httpd-php .wml
in the httpd.conf, then everything its fine and apache returned
the korrekt header in pure .wml sites (without php stuff).
my mimetype entry
text/vnd.wap.wml wml
works in this case.
when i add
AddType application/x-httpd-php .wml
to the apache config, the mimetype settings are useless :-(
apache sends by default text/html and i have to rework als .wml
sites and have to add a line at first::
<?php header("Content-Type: text/vnd.wap.wml");?>
thats very bad, if i have lots of such sites, which were at first
plain wml.
i wanted to rename all .php sites to .wml, if they produce wml
code, because i want to avoid problems with wap browsers
which are looking for the filepostfix...
imho should php set the header using mimetypes settings.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 06:00:01 2025 UTC |
is it possible to use variables in header function. Eg. header("Location :" . $refpage); where refpage contains the referer to a page ie., the complete path like "http:\\test\seethis.php"; will this work.