Page 1 of 1

redirecting back to some page.

Posted: Tue Jun 10, 2008 9:27 am
by sangfroid
Hi
I would like to redirect the user directly to some other page after some time ( say if user has supplied incorrect password or so )


I used the header function, but it is saying something like

Cannot modify header information - headers already sent by (output started at /var/www/html/fileupload.php:9) in /var/www/html/fileupload.php on line 17


Which function do I need to set a timer and also to redirect to some other page automatically ?

Re: redirecting back to some page.

Posted: Tue Jun 10, 2008 9:46 am
by pickle
You can only send headers if no other output has been sent to the browser - such as text. The error you're getting says output was already sent to the browser on line 9 of your file.

Re: redirecting back to some page.

Posted: Tue Jun 10, 2008 10:06 am
by sangfroid
how to solve it in that case ? 8O
pickle wrote:You can only send headers if no other output has been sent to the browser - such as text. The error you're getting says output was already sent to the browser on line 9 of your file.

Re: redirecting back to some page.

Posted: Tue Jun 10, 2008 10:26 am
by sangfroid
I got it... It's solved now...
Thank you
sangfroid wrote:how to solve it in that case ? 8O
pickle wrote:You can only send headers if no other output has been sent to the browser - such as text. The error you're getting says output was already sent to the browser on line 9 of your file.