#12989 [Com]: php sets the wrong default header (use not mimetypes)

From: Date: Tue, 06 May 2003 09:34:53 +0000
Subject: #12989 [Com]: php sets the wrong default header (use not mimetypes)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39148@lists.php.net to get a copy of this message
ID: 12989 Comment by: rejish_tk at yahoo dot com Reported By: tf at tfromm dot com Status: Closed Bug Type: Apache related PHP Version: 4.0.6 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-01-27 05:01:28] dick_bzz at poczta dot onet dot pl And what about WWW servers used for HTML(php) and WML(php)(simultaneously)? Setting default_mimetype to WML allocating server ONLY for WML(php) ------------------------------------------------------------------------ [2001-11-03 22:05:15] sniper@php.net You can use this php.ini directive to set the mimetype: default_mimetype = text/vnd.wap.wml This can also be set within httpd.conf / .htaccess files: php_value default_mimetype text/vnd.wap.wml --Jani ------------------------------------------------------------------------ [2001-08-28 02:37:53] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12989&edit=1

« previous php.bugs (#39148) next »