--- Fireborn Silvaranth <[EMAIL PROTECTED]> wrote: > I'm trying to grab a number (sessionNum) out of a text file and increment > it whenever someone leaves and comes back to the site.
How about this: <? session_start(); if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } echo 'You have visited ' . $_SESSION['count'] . ' times before.'; ?> Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php