Re: header() not working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Dec 14, 2016, at 9:52 AM, Tedd Sperling <tedd@xxxxxxxxxxxx> wrote:
> 
>> On Dec 13, 2016, at 5:13 AM, Ford, Mike <M.Ford@xxxxxxxxxxxxxxxxxx> wrote:
>> 
>> What's does include('includes/header.php') do? I'm betting there's output in there! If so, put it inside your
>> 
>>   if ($step == 0)
>> 
>> where it belongs anyway.
> 
>> (As does the include of footer.php, incidentally.) There's no point putting anything that might possibly do output in a path that can issue a redirect, so don't.
>> 

Mike:

Your comment was right-on about the code. I’ve changed it and it works now. You can review here:

http://citw.lcc.edu/~sperlt/citw185/examples/redirect.php

I believe the “change” was in an update to PHP that no longer permitted using “header" as I did. The confusing part for me was that it actually did work before the update.

Even us old dogs can learn — thanks for the lesson.

Cheers,

tedd
_______________
tedd sperling
tedd@xxxxxxxxxxxx




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





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux