:: ENGLISH :: PORTUGUêS ::
|
Beer, wine or water? What do you drink?
Partners: Server time 02:59 Location: Home Page > Resources > 437421846 PHP - Visitors counter using a file
There is more than one way to use this resource. You can leave the files available for download has they are and then, include them in the file you wish to count the number of visitors, if you place this line on that file: <?php include('php_counter_en.php'); ?> Note: the tree files must be on the same folder. By including the php_counter_en.php file we are still not using the file, we are just gluing the file content. We must add this line on the file we want to count the number of visualizations for the code to work: <?php counter(); ?> Note: If you decide to alter the files names don't forget to change the file name in the function (from contador.arf to the name you desire), and in the include command. You can also copy the content of the php_counter_en.php file to the file you want to count the visitors and call the function. What ever way you choose will work. The file php_counter_en.php has comments so you can easily understand it. If you have any problem or need some changes please leave a comment. by André Ferreira in 2004-06-14 |