Link to home
Create AccountLog in
Avatar of Misafi
MisafiFlag for South Africa

asked on

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
      FolderObject.CreateFolder("C:\counter\Text")

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

      TextFile.writeline(counter)
      Response.Write(counter)
TextFile.close
%>

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?
ASKER CERTIFIED SOLUTION
Avatar of Craig321
Craig321
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Misafi

ASKER

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