I have a file in the root of the server:
<?php header("Location: http://www.google.com/", true); //this does not work //echo "Test"; //this is tested and works. ?>
Is the php.ini file incorrect or why is this possible?
remove all spaces before <?php ... and read How to fix a "Headers Already Submitted" error in PHP
<?php ...
You forgot the title name:
header("Location: http://example.com");
Source: https://habr.com/ru/post/1490109/More articles:Trying to set up a meteorite using haml and coffeescript and get an error during meteor launch - meteorHow to find all words appearing between `\ word {}` in BASH? - bashHow to read cell value from formula cell using apache poi - javaEmacs ispell goto previous word? - emacsredirect with header function not working - phpTrying to draw a pattern divided into several parts with an html5 canvas - javascriptCookie Protection in ASP.NET and SSL - c #How is the DialogPreference style with a custom theme? - androidHow to protect a website session cookie? - loginwhy Java does not support dynamic variable sending - javaAll Articles