To install phpTrafficA, you will need:
- A web server with php and mysql
- A local copy of ip2c (php script to determine to which country an IP address belongs)
- Country flags, somewhere on your server (see ip2c homepage),
- to download the most recent version of phpTrafficA at the the phpTrafficA homepage
The archive phpTrafficA_cur.tgz consists of
- a file called "funcIp2c.php",
- a file called "count.php",
- a folder called "Php" with the actual source code of the program.
To install:
- download the most recent version of phpTrafficA at the the phpTrafficA homepage,
- Create a folder for phpTrafficA on your server (YOUR_FOLDER),
- modify Php/config_sql.php with your login, password and base name for mySQL server connection,
- modify Php/config.php with
- the correct path to the ip2c folder from YOUR_FOLDER/
- the correct path to the folder with country flags from YOUR_FOLDER/
- the extension of your country flags images (png, gif...)
- transfer the file "funcIp2c.php" to the ip2c folder on the server,
- transfer the content of the Php folder to the server, in the folder you created
- edit variable $path in the file "count.php", with the path from you home directory to the folder YOUR_FOLDER
- transfer the file "count.php" to your home directory,
- open the file "YOUR_FOLDER/install.php" in a web-browser and follow the instructions.