PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
header("Location: http://www.example.com/"); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?>
only differences I notice are:
" instead of '
exit; instead of exit();
I'm not very smart, but I figured I'd tell you what I saw.
That error message is displayed when you have output (anything displayed in the screen + blank spaces and newlines) before the header-function is called.