We help IT Professionals succeed at work.
Get Started

php hit counter milestone recorder

412 Views
Last Modified: 2012-05-10
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?
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE