There is a little code that worked before my virtual host before they updated to 4.3.1.

First time the function is called session should be set, subsequent calls should be skipped.

session_start();

if($_SESSION['counter_file'] !==$counterFile) //See if visitor has already been counted for this page
{$num += 1; $_SESSION['counter_file'] = $counterFile;
}


echo $_SESSION['counterFile'] . ' testxxxxxxxxx ' . $counterFile;

$_SESSION['counterFile'] shows nothing, even the first time through

$counterFile shows just fine.

Al..........

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to