ScooterB Posted March 9, 2004 Posted March 9, 2004 Thanks to all the great info, I've set up an advanced guestbook, www.skjb.com/guests Then I edited the /public_html/guests/lang/english.php to cusomize the guestbook a little. It looks fine when using the guestbook, but when going into the administration of the guestbook, I get this error. Warning: Cannot modify header information - headers already sent by (output started at /home/skjbcom/public_html/guests/lang/english.php:103) in /home/skjbcom/public_html/guests/lib/admin.class.php on line 33 Anyone have any guesses what I did? Thanks! Quote
DarqFlare Posted March 9, 2004 Posted March 9, 2004 That error means that somewhere you made it so the administration page outputs text to the browser before sending header information. An example in PHP: ><?php echo "Output to browser."; header("Location: /otherpage.php"); ?> What happens in that PHP code is that something is output to the browser and the user, then it tries to send header information: not allowed. Go back into the file you edited and make sure there are no spaces or blank lines outside of the <?php ?> brackets. That is probably the culprit. Quote
ScooterB Posted March 9, 2004 Author Posted March 9, 2004 Cool beans. Looks like there were a couple of blank lines following the closing php tag. Backspaced those out, and all is golden again. Thanks mucho! The TCH family is the best! Thumbs Up Quote
DarqFlare Posted March 9, 2004 Posted March 9, 2004 Good to hear. I had that happen to me yesterday as a matter of fact, using the CPanel File Manager... I check it now when I edit in there. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.