Web lists-archives.com

Re: [PHP] header() not working?




Tedd Sperling wrote:

> 
>> On Dec 10, 2016, at 10:25 AM, Ryan Pallas <derokorian@xxxxxxxxx>
>> 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.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php