Possible Duplicate:
Headers already sent by PHP
"Cannot modify header information - headers already sent"
Since updating my MacBook Pro to OS X Mountain Lion, my localhost website has been malfunctioning.
The majority (if not all) of my header("Location: ./xxx.php");
redirects have not been working. They worked in Lion, so I'm assuming Mountain Lion is the cause for this and not my code. The error also occurs if I turn off the built in server and enable/use MAMP.
This leads me to believe it's an issue with how Mountain Lion as a whole treats headers. If this error was in fact my code, then why'd it work in Lion? I'd assume Mountain Lion reads PHP code in a stricter way if this is the case. Also, I then made a simple test.php script with a header redirect to see if headers in general weren't working. As it turned out, that script redirected me with no issues whatsoever when I opened it in Safari. This error seems odd to me, and I'd like some feedback. Thanks.