php header location is not working code example
Example: php location header 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
header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP