include(); problem
Hi,
I have a file with the dbase connection details which I call into my script using: include("config.php");
Problem is that when I need to include a page redirection, namely:
header("Location: other_page.php");
I get an error saying that headers were already sent from the line with the include("config.php");
How do i get around this so I don't have to write out the dbase connections everytime I need to have a
header("Location: other_page.php");
thanks.
michael123
Junior Poster in Training
94 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
michael123
Junior Poster in Training
94 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0