/***************************************************************************
 *
 *   RobotStats
 *
 * Author:   Olivier Duffez, WebRankInfo ( http://www.webrankinfo.com )
 * Version:  1.0
 * Date:     2003-10-11
 * Homepage: http://www.robotstats.com    
 *
 ***************************************************************************/

===========
 QUESTIONS
===========

1) There is an error with the 'setlocale' function.
2) There is an error with the 'settype' function.
3) RobotStats doesn't detect any visit!
4) How should I configure the MySQL database connection?


=========
 ANSWERS
=========

1)
Function : setlocale
File     : graph.php
Question : There is an error with the 'setlocale' function.
Rponse  :
For versions older than 4.3.0 of PHP, the 'setlocale' function must be used
in the following way: setlocale("LC_ALL", "en_US"); 
instead of the new official way: setlocale(LC_ALL, "en_US"); 
A test has been added in the code, so you shouldn't have this error anymore.

2)
Fonction : settype
Fichier  : lib.php
Question : There is an error with the 'settype' function.
Rponse  :
Since version 4.2.0 of PHP, the 'settype' function uses the argument 'int'
instead of 'integer'. A test has been added in the code, so you shouldn't have
this error anymore.

3)
Fonction : strpos
Fichier  : robotstats.inc.php
Question : RobotStats doesn't detect any visit!
Rponse  :
This may be a problem with the 'strpos' function which doesn't function in
the same way depending on the versions of PHP.
Replace $detecte = ($pos !=== false);
by $detecte = (!is_string($pos) || $pos));
Use the test robot "_test" and enable it (cf. Robots Management).
View some pages of your site within your browser and have a look at
RobotStats to see if your visits have been recorded. Don't forget to
disable the "_test" robot.

4)
Fonction : [configuration]
Fichier  : admin/config.php
Question : How should I configure the MySQL database connection?
Rponse  :
You must modify these 2 lines in the file admin/config.php :
 @mysql_connect("HOST", "LOGIN", "PASSWORD");
 @mysql_select_db("BASE");
These 4 variables should be given by your host provider.
The HOST name is the name of the MySQL server (sometime "localhost", sometime
"sql", ...).
The BASE name may be found in phpMyAdmin, on the top left.
