Hit Counter

1. Create a counter text file of the name hitcounter.txt and save it to the same directory you will put your hit counter in.

2. Open your php editor. Save the document as counter.php. Set your opening statement for PHP script.

<?php
?>

3. Set the variable for the file named hitcounter.txt and place this between your PHP tags. remember to place the filename in quotes. place the semicolon on the end of the line to end the command.

<?php
$count_my_page = (“hitcounter.txt”);
?>

4. Set the number of visits to the current value of the contents of the hitcounter.txt file: Read the rest of this entry »

Tags:

Cuong Dang © 2006-2010 | Say Hello | Site's contents is licensed under a CCA 3.0 | Powered by Wordpress | Theme by.