Creating a Hit counter
Posted by: Floresense Team
Installation Steps: 1 Download the zip file and unzip into weblocation. (public\html) 2 Create MysqlDB from information in DBsetup-readme.txt in the download. 3 Change the following lines in all php code in the project.
$db = mysql_connect("localhost","root"); mysql_select_db("hitcounter",$db); 4 Make sure that the dbuser(in this case 'root') is given SELECT, INSERT, UPDATE rights on the database. 5 Done! you are finished with the setup. Test in a browser as per the navigation plan.
Two key files of the project are hitcounter.php and FCsignup.php. If you are through setting up these two, and the database as expected, you are through.
Scope for modifications and additions Once we setup this much, the space for flexibility, adding features will be easy and interestig. Some examples are, > Taking other visitor stats from header received by hitcounter.php > Can implement text-output hitcounter values (not text-styled images). This can be done by allowing client webpages to call the php code in a javascript tag like this,
<script language="javasctipt" src=" http://myweb.com/hitcounter.php"> </script> If you can think of something that might help others, post a comment below.
Advertisement
|