Simple PHP counter not working

A

Anonymous

Guest
The problem would appear to be that you're using $COOKIE instead of $_COOKIE.

As far as the cookie file not showing up, this could be for a number of reasons. It may be that the browser keeps the cookie in memory for awhile before saving it to the hard drive. Or maybe you just didn't refresh the directory listing? Either way, I doubt you need to worry about it.
 
your other cookie mistake was:

setcookie('theUser','unique visitor', time() + 99999999);

Andrew
 
Back
Top