Global include with output plus headers
Posted: Thu Oct 18, 2007 10:06 am
I have a problem... i wanted to make a global include which contained the html menu for every page as the layout is same through.
So i put it into my current include which carries sessions of the user ID and connection to table/database.
But this means i have to have this as the first line in the script because of the connection plus session.
Which means i cannot do any headers if output of the html menu has already begun prior to the header location part of my php.. how can i get around this?
The headers i put inside if statements so they will only happen when the user does something yet it still produces the problem when the page loads straight away...
So i put it into my current include which carries sessions of the user ID and connection to table/database.
But this means i have to have this as the first line in the script because of the connection plus session.
Which means i cannot do any headers if output of the html menu has already begun prior to the header location part of my php.. how can i get around this?
The headers i put inside if statements so they will only happen when the user does something yet it still produces the problem when the page loads straight away...