Re: [PHP] header() not working?

[email protected] (Per Jessen)
Newsgroups php.general
Organization News-server @ ENIDAN Technologies GmbH
Message-ID <[email protected]>
Tedd Sperling wrote:

> 
>> 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?

The obvious answer is - something changed. 

FWIW, your code works for me. Apache 2.2, php 5.3.5, various browsers. 

http://www.jessen.ch/tedds


-- 
Per Jessen, Zürich (5.6°C)
http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland.
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.