php header location not working 1

php header location not working

header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP

Here is what the above code is Doing:
1. The header() function is used to send a raw HTTP header.
2. The first argument of header() is the string to be sent as the raw HTTP header.
3. The second argument is optional. It is used to replace the current header and not add a second header.
4. The third argument is optional. It is used to specify the response code.

Similar Posts