Reply to Re: How can I make the script to recognize me?

Your name:

Reply:


Posted by dimo414 on 07/26/06 07:15

> You can check for your own ip address ($_SERVER['REMOTE_ADDR']) and
> exclude this in your results.

I have to disagree with Dennis. ISP's often change IP addresses, if
you're running through any kind of router, all other computers
connected via that router will also be excluded, and if you use a
laptop and connect wirelessly anywhere but your home, you'll be
visiting with a different IP address.

Since you're trying to block a computer which you always have access
to, the easiest thing to do is set a cookie which won't expire for,
say, ten years. Then have your counter script exclude any visits with
that cookie set. This has the added benefit that you can apply it to
any computer you want, and as long as the cookies are not deleted,
visits from that computer will not be counted.

> You can also make an extra button hidden somewhere on your site to flush
> the results generated by your current visit. This will help when you
> visit the website from different computers.

While this method allows for mulitiple computers, IPs, and the like, I
wouldn't like having to click a button every time I visit my own site,
I'd imagine you wouldn't either.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация