php hit counter milestone recorder

My normal hit counter is as follows

Dim FolderObject
Dim MyFolder
set FolderObject=server.CreateObject("Scripting.FileSystemObject")
If FolderObject.FolderExists("C:\counter\Text")=false then

end if
Dim Counter
set TextFile=FolderObject.OpenTextFile("C:\counter\Text\xxx.txt")
set TextFile=FolderObject.CreateTextFile("C:\counter\Text\xxx.txt")


I would like to add a code that would activate a banner or drop down that will become visible when the total in the text file reaches a specific figure i.e.
"This site has now had 100,000 visitors"  Whether it be a drop down, a banner or a blockquote does nor really matter.

Can this be done?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

All you'd need to do is open and read the txt file as you have above:
set TextFile=FolderObject.OpenTextFile("C:\counter\Text\xxx.txt")

Open in new window

Note: I have taken out the +1 as you are reading the current value, not adding another 1.

Now you can do a simple if/else with the counter variable above:

If count=100000 Then
' Replace this with an image of course
Response.Write("Congratulations, you are the 100,000th visitor!")
End If

Open in new window

It's quite straight forward.

I personally wouldn't recommend it as having a "This site has now had 100,000 visitors" is often seen as spammy.  If you want this information/milestone for your own records then I would recommend having a look at, and implementing Google Analytics:

It will record your sites statistics, and also allow you to set milestones.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MisafiAuthor Commented:
Many thanks - straight forward as you say, but only when you know how.
I take your point regarding "spammy" but this is a Club site and thus "in house".
Thanks again
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.