Page 1 of 1

header (redirection) problem

Posted: Fri Dec 18, 2009 3:53 pm
by adsegzy
Hello There,

Am having problem with the header in my files. I have a login file which will direct members to their page using header() if their login info is correct. for my header() to function, i uploded

.htaccess

Code: Select all

<? PHP_FLAG output_buffering on ?>
but when it filed i uploded
php.ini

Code: Select all

<? output_buffering on ?>
but still my login file is still giving me
Warning: Cannot modify header information - headers already sent by (output started at /home/peoplefi/public_html/adminarea/login.php:9) in /home/peoplefi/public_html/adminarea/login.php on line 42
please what do i do?

regards

Re: header (redirection) problem

Posted: Fri Dec 18, 2009 4:45 pm
by AbraCadaver
You need to post your code. Starting output buffering may solve the problem (in some cases), but you shouldn't be outputting anything before the header call in the first place.

Re: header (redirection) problem

Posted: Fri Dec 18, 2009 9:29 pm
by adsegzy
do you mean i should just

Code: Select all

buffering on
?????????//

Re: header (redirection) problem

Posted: Fri Dec 18, 2009 9:53 pm
by requinix
I could swear I answered this output buffering thing already.

Re: header (redirection) problem

Posted: Sat Dec 19, 2009 8:37 pm
by daedalus__
my god its been cloned! shoot it!