Simple PHP counter not working

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Fri Jul 18, 2003 5:12 am

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.
Image

User avatar
bezmond
Moderator
Moderator
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK
Contact:

Sat Jul 19, 2003 12:13 am

your other cookie mistake was:

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

Andrew

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests