On Mon, 25 Mar 2002 18:18:33 -0000, [EMAIL PROTECTED] (Chad Gilmer) wrote:
>Hi There, > >I am a beginner to PHP and I am tring to use session variables on my site. > >I am trying to use Session Variables in PHP on the iPLANIT.tv site > >When I use the following code: > ><?php > $ses_counter++; > > session_register("ses_counter"); > >?> > >I get the following error > >Warning: Cannot send session cookie - headers already sent by (output >started at /home/iplanit/public_html/php/login.php:8) in >/home/iplanit/public_html/php/login.php on line 11 > >Warning: Cannot send session cache limiter - headers already sent (output >started at /home/iplanit/public_html/php/login.php:8) in >/home/iplanit/public_html/php/login.php on line 11 > >Any Ideas??? > >Cheers > >Chad > put the session_register("") in front of the code. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php