Re: [PHP] header() not working?

[email protected] (Andrey Repin)
Newsgroups php.general
Message-ID <[email protected]>
Greetings, Tedd Sperling.
In reply to Your message dated Saturday, December 10, 2016, 18:29:17,


>> On Dec 10, 2016, at 10:25 AM, Ryan Pallas <[email protected]> wrote:
>> 
>> You have output before header call. If you turned on error_reporting ike
>> Chris mentioned, you would see that output had already started.
>> Specifically this line is output:
>> 
>> print_r($_POST);
>>> 

> Ok, so I took the print_r() out — so now what’s the problem? It still doesn’t work.

> The point of all this is it (the code “as-is”) has been working for the
> last 8 years — so why does it fail now?

Set in your relevant php*.ini

error_reporting = -1
log_errors = On
log_errors_max_len = 0

And it will tell you, what goes wrong.
Don't sit on your laps, asking "why does it fail". Debug your code.


-- 
Sincerely Yours, Andrey Repin <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.