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!
I'm not sure if this is a config problem or a code problem. I get no errors but the php line of code is not redirecting. As always, thanks in advance for any help.
Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file.
I read the php manual but I missed the blank line part. When I moved the line of code to the top of the file and removed the blank line everything worked as planned. Thanks for your help.