Hello,
Can anyone explain as to why this header redirect works:
<?php
error_reporting(-1);
ini_set('display_errors', true);
header("location: http://www.bbc.co.uk");
echo phpinfo();
?>
But this one doesnt:
<?php
error_reporting(-1);
ini_set('display_errors', true);
header("location: http://www.bbc.co.uk");
?>
I dont get any errors just a blank screen, why would I have to echo out php info to get my header to work?
Would it be a server config somewhere?
Any advice much appreciated.