Page 1 of 1

headers doesnt work on apache1.33

Posted: Wed Oct 19, 2005 2:42 am
by dude81
Hello,
my headers are not working
Ill put one such logic

Code: Select all

if($parameter=="upcoming_events")
                                {
                                echo "upcoming";
                                header("Location:dsa_events_reservations.php?upcoming_events='YES'");
                                }
I can see only that echo message . Also I dont even get a notice header already passed.

Thank You
Sai Krishna

Posted: Wed Oct 19, 2005 4:16 am
by mickd
check out
Error Reporting
and set it to E_ALL

also its a good idea to set die() after header redirections to stop anything else from getting executed after it.

also are you sure you want quotes around the YES?

Posted: Wed Oct 19, 2005 4:59 am
by thomas777neo
Dont echo anything before using the header function

Posted: Wed Oct 19, 2005 5:29 am
by dude81
E_ALL is given but still there is no error reporitng Im echoing a value and after echoing it stops, but ehcoing is given for testing

Posted: Wed Oct 19, 2005 6:49 am
by feyd
full uri is required for many servers and browsers for header redirection.