SmartFAQ is developed by The SmartFactory (, a division of InBox Solutions (

How do I setup php-stats?
Php-stats is an excellent free third party site monitoring sript. It is released under the GPL/GNU liscence. I have used it happily for three years and can highly recommend it.

php-stats is written by an Italian prgrammer, so it is a little difficult for non Italian speakers to setup. If yu want to see a demo of the stats program you can see it working on Here you will find the VIEW SITE STATISTICS in the left panel about half way down. Clicking VIEW FULL STATISTICS will open the full application (ecept admin of course)

Download php stats from

php stats does have an english FORUM
if you need further help, although this guide should suffice.

If you want a quick and dirty setup guide here it is. Ive done this several times and its very easy
In stats/config.php. Set these parameters

$option['host']='localhost'; // Host
$option['database']='PhpStats019'; // Database name
$option['user_db']='user'; // User
$option['pass_db']='pwsd'; // Password
$option['script_url']=''; // URL of stats script
$option['exc_pass']='pass'; // Password utilizzata da php-stats per abilitare l'esclusione degli ip dinamici.


For a first time installation:
1) Edit the config.php as above whith sqlhost, username, password stats' url etc....
2) Upload the whole folder to your webspace
3) CHMOD 666 or may be 777 the options folder, the php-stats.log and the config.php
4) Open your browser and go to the url
5) choose your language and follow the istructions.
6) after you have set up the stats scripts you need to go to /stats/admin.php?action=preferenze and make any changes there
7) Also copy the Javascript code shown here;
"Javascript to put in your pages in order to activate stats monitoring
and place it just above the closing html tag in theme.html of your site. This makes the stats call to the script for every page served.

8) to get the counter on your pages, you need to generate code from the section;
"Javascript to put in your pages in order to view desired stats"
and put this in a custom block. save it as html. Several options can be created in this section and also different types of fonts etc.

The comments are owned by the author. We aren't responsible for their content.


The Javascript part of your tutorial is missing..?


 PHP-Stats new website

The new website for PHP-Stats is:

So far only an Italian version of the website is available.


 Re: PHP-Stats new website

Thanks very much for this information. I was beginning to worry development had stopped.


 Re: PHP-Stats new website

It looks like they continue their project.
The latest version available is (was still beta on the old website).


 Display Previous Visit and View stats.


I would like to display Previous Visit and View stats. like your page, can you shed some lights on how this is done.

thanks, mate.



Who's Online

148 user(s) are online (3 user(s) are browsing XOOPS FAQ)

Members: 0

Guests: 148



Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

The basic structure of a XOOPS theme is similar to that of any other static website template. The primary difference is the addition of Smarty variables that interact with XOOPS to output your dynamic content.

Random question

Xoops Database does not exist.....Attempt to create it? Could not create database. Contact the server administrator for details.