ASP Hit Counter in Text File
| Script version: | 1.0 |
| Language: | ASP |
| Rating: |
0 (0 votes cast) |
| Category: | 12 |
| Description: | This script will open up a text file and increment the value by 1. Can be used as a page specific hit counter (although using a separate google analytics profile is a better method) |
| Instructions: | just paste the code in the header portion of the page, and the number of page views will be incremented when the script is run. Note, you need to include the counter.txt file in the same location, however you can modify the code to reference a file in a private folder if required. The text file should initially have just '0' in it, although you can use a different starting counter if required. |
| Code: | |
Comments
Related Scripts:
Check if file existsASP Read text file
Tags
[ hit counter ] [View tag cloud]Tag Cloud Submit a script
Latest Scripts Added
Pass null parameter in to parameterized query (ASP.net)10 August 2010
If you try to use a parameterizes query like this: SqlCommand comm = new SqlCommand(); comm.CommandText = "insert into Authors (firstname, surname) values ...
Javascript List all properties for an object (Javascript)
23 March 2010
This code will expose all properities for a javascript object in a new window. Very handy little tool found here: http://www.faqts.com/knowledge_base/view.phtml/aid/8276
c# isNumeric function (ASP.net)
22 March 2010
There is no built in function for isNumeric, however there is a tryParse function that returns true if a string can be converted to a number. A quick and simple method for isNumeric is below.
ASP Hit Counter in Text File (ASP)
11 February 2010
This script will open up a text file and increment the value by 1. Can be used as a page specific hit counter (although using a separate google analytics profile is a better method)
ASP Replace in HTML (ASP)
10 February 2010
This function is designed to replace text in HTML strings so that only the non HTML code is replaced. If the searched for phrase is found in the body of the HTML, then the function will firstly ...
Recommended Sites:

