I tried using ob_start() and similar... but with no luck.
Then I just created one php file:
Code: Select all
<?php header ('location: http://somelocation.com'); ?>What on earth was already sent, when the ONLY command was the header itself??
Then I erased the line above and added this code only
Code: Select all
var_dump(headers_list());when used on my localhost:
array(1) { [0]=> string(23) "X-Powered-By: PHP/5.2.6" }
but on webhost:
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.6" [1]=> string(23) "Content-type: text/html" }
Why and who added the "content-type"!? What's going on?