|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-07 19:31 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 05:00:01 2025 UTC |
In php 4.2.3, if a value is specifed for the default_charset variable in /etc/php.ini, attempts to modify the content type using: header("Content-Type: text/vnd.wap.wml"); will be ignored by PHP: > telnet www.buberel.org 80 Trying 10.0.0.1... Connected to taylor.buberel.org (10.0.0.1). Escape character is '^]'. get /wapmail/test.php HTTP/1.0 HTTP/1.1 200 OK Date: Mon, 06 Jan 2003 21:32:01 GMT Server: Apache-AdvancedExtranetServer/1.3.26 (Mandrake Linux/6.1mdk) mod_ssl/2.8.10 OpenSSL/0.9.6g PHP/4.2.3 X-Powered-By: PHP/4.2.3 Connection: close Content-Type: text/html; charset=iso-8859-15 <?xml version="1.0"?> However, when the value of default_charset is set to the empty string ("") in /etc/php.ini, the content-type header is handled properly: > telnet www.buberel.org 80 Trying 10.0.0.1... Connected to taylor.buberel.org (10.0.0.1). Escape character is '^]'. get /wapmail/test.php HTTP/1.0 HTTP/1.1 200 OK Date: Mon, 06 Jan 2003 22:02:04 GMT Server: Apache-AdvancedExtranetServer/1.3.26 (Mandrake Linux/6.1mdk) mod_ssl/2.8.10 OpenSSL/0.9.6g PHP/4.2.3 X-Powered-By: PHP/4.2.3 Random-Header: x/y Connection: close Content-Type: text/vnd.wap.wml <?xml version="1.0"?> -jason