Hello @all!
I have some trouble with the HTTP-Header "content-type". In the config file (php.ini) I can set default_mime to a default that should be sent with every page. This works, but I cannot overwrite this header field with the header function.
I have some wap pages on the same physical web server (linux with apache) and I need the dynamic WAP pages. WAP pages need to have text/vnd.wap.wml as their content-type but any page generated throught php get text/html as content-type.
When setting default_mimetype to an empty string in php.ini I can set the content-type to the correct value (for my WAP pages), but then all "normal" pages (which I also need) have an empty content-type HTTP header field (which seems to confuse some browsers).
How can I set different (default) HTTP header fields (esp. the content-type field) for different virtual servers?
Thanks for your help!
Tom
P.S. Also tried to set the default_mimetype via ini_set. Did not work either.