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:[EMAIL PROTECTED] > Sent: Saturday, June 28, 2003 7:08 PM > To: [EMAIL PROTECTED]; 'Rasmus Lerdorf' > Cc: [EMAIL PROTECTED] > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php