> > > <?php > > > session_start(); > > > global $count; > > > session_register ("count"); > > > $count++; > > > ?> > > > > > > Hello visitor, you have seen this page <?php echo > > > $HTTP_SESSION_VARS["count"]; ?> times.<p> There was a bug in PHP in versions prior to 4.0.6: $count and $HTTP_SESSION_VARS["count"] did not reference the same value while on the *current* page. Try this: <?php session_start(); $count++; session_register ("count"); ?> Hello visitor, you have seen this page <?php echo $count; ?> times. Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- RE: [PHP] Session problem hassan el forkani
- Re: [PHP] Session problem Yasuo Ohgaki
- RE: [PHP] Session problem hassan el forkani
- RE: [PHP] Session problem Chad Day
- RE: [PHP] Session problem hassan el forkani
- RE: [PHP] Session problem Chad Day
- RE: [PHP] Session problem Brian Dunworth
- RE: [PHP] Session problem Chad Day
- RE: [PHP] Session problem Bjorn Van Simaeys
- RE: [PHP] Session problem Chad Day
- RE: [PHP] Session problem Johnson, Kirk
- RE: [PHP] Session problem Chad Day
- RE: [PHP] Session problem Chad Day
- RE: [PHP] Session problem Johnson, Kirk
- RE: [PHP] Session problem Johnson, Kirk
- [PHP] Session Problem Lawrence . Sheed
- [PHP] Re: Session Problem Richard Lynch
- RE: [PHP] Session Problem Rudolf Visagie
- [PHP] PHP / MySQL Hosting Charges Chris Aitken
- [PHP] Re: PHP / MySQL Hosting Charges Raphael Pirker
- Re: [PHP] PHP / MySQL Hosting Charges Alnisa Allgood