RE: [PHP] 'Cannot send Headers' Problem!! MOre..

From: Date: Sat, 28 Jun 2003 06:20:06 +0000
Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153248@lists.php.net to get a copy of this message
First, where is your header call? And when you do a view source on the page with the error, what do you see before that error is shown? -Rasmus On Sat, 28 Jun 2003, PHPSpooky wrote: > Glory! > > Well so far all solutions have failed.. > I gave the include functions as the first line of my directory.php as > this.. > > <?php include("global.inc.php");?> > > I've given HTML in it's original form.. as well as in echo.. tried > both.. > > This.. > > <body bgcolor="#314160" background="bg.jpg" topmargin=0 marginheight=0 > link=#ffdead vlink=#ffffff alink=#ffdead> > > Or this.. > > echo "<body bgcolor=#314160 background=\"bg.jpg\" topmargin=0 > marginheight=0 link=#ffdead vlink=#ffffff alink=#ffdead>"; > > for each line. > > And yet nothing is working! > I still get the Headers cannot be modified error.. > > Is there no solution to this problem? > > PHPSpooky > > > > -----Original Message----- > > From: Marek Kilimajer [mailto:kilimajer@webglobe.sk] > > Sent: Friday, June 27, 2003 7:25 PM > > To: phpspooky@mjimm.com > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] 'Cannot send Headers' Problem!! MOre.. > > > > The top means the top of the file, not the top of your coding. > > Simply: > > Line 1. of directory.php: <?php include_once("global.inc.php") ?> > > Line 2. of directory.php: <html> > > Line 3. of directory.php: <head> > > .... > > > > PHPSpooky wrote: > > >>Headers can't be sent after HTML output, it's as simple > > >>as it sounds. What that means is, if you suddenly decide > > >>you want to send a Location header to redirect the browser, > > >>you can't if you outputted any HTML before the line that > > >>outputs the location, unless ofcourse your using Output > > >>Buffering. > > > > > > > > > Excellent.. I understand that fine. But what is the solution for > this? > > > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#153248) next »