RE: [PHP] 'Cannot send Headers' Problem!! AT LAST!!!!

From: Date: Sat, 28 Jun 2003 14:09:06 +0000
Subject: RE: [PHP] 'Cannot send Headers' Problem!! AT LAST!!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153263@lists.php.net to get a copy of this message
Glory Daryl!! THANK YOU THANK YOU THANK YOU!!!! AT LAST!!! After 48 hours, countless emails, and so many heads .. finally!! It works!! Your suggestion worked!!! It was actually a login() function that was calling.. I moved that to the top, alongwith the include function.. and the errors were gone!! I thought if I did do that, probably the contents would also move up above the HTML coding to the top of the page in display.. but that didn't happen.. so it worked out fine! I got a lot of advise and suggestions, but I didn't get this one, about moving the function itself.. Gosh! Thank you so much man.. you're a miracle. Thanks, PHPSpooky > -----Original Message----- > From: Daryl Meese [mailto:darylm@magiasoftware.com] > Sent: Saturday, June 28, 2003 7:08 PM > To: phpspooky@mjimm.com; 'Rasmus Lerdorf' > Cc: php-general@lists.php.net > Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre.. > > Ok, It is not the location of the <?php include("global.inc.php");?> that > matters here. I assume the login function included below is called from > the > function is_admin that is called in your code somewhere around line 54. > That means that HTML has already been output (everything above line 54) > and > therefore the header and setcookie functions will fail. Try moving the > $admin = is_admin() call above all the HTML in your pages. Maybe right > after the include line. > > Daryl

« previous php.general (#153263) next »