I have a file in my server root:
<?php
header("Location: http://www.google.com/", true); //this does not work
//echo "Test"; //this is tested and works.
?>
Is my php.ini file wrong somewhere or why can this be?
I have a file in my server root:
<?php
header("Location: http://www.google.com/", true); //this does not work
//echo "Test"; //this is tested and works.
?>
Is my php.ini file wrong somewhere or why can this be?
You forgot name of the header:
header("Location: http://example.com");
remove any and all whitespace before the <?php ...
and read How to fix "Headers already sent" error in PHP