|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-03 09:36 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ In the documentation : "Remember that header() must be called before any actual output is sent..." We can find the same in setcookie() function. In PHP5, when we use header("Location: http://www.lookstrike.com"); , the function doen't care if we sent something before. If other function exists like that, perhaps it will do the same thing... php.ini file : display_error = On error_reporting = E_ALL I don't know if you have to clarify the docs or if it is a function bug... Reproduce code: --------------- <?php echo "A"; header("Location: http://www.lookstrike.com"); // Going to Website ?> of <?php echo "A"; setcookie("TEST"); // No error ?>