php Cannot modify header information – headers already sent by FIX

Buffers output and eliminates problem with spaces/line breaks at the beginning/end of files. Make sure to place ob_start(); before header(); is called.

<?php
ob_start();

header("Location: somepage.php"); //Redirect

ob_end_flush();
exit;
?>

[ad code=1 align=center]

Join the Conversation

1 Comment

Leave a comment