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 (available on the phpTrafficA 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
), - Make sure that the PHP scripts have write access to this folder (this can be done with your ftp program)
- 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 fromYOUR_FOLDER/
- the correct path to the folder with country flags from
YOUR_FOLDER/
- the extension of your country flags images (png, gif...)
- the correct path to the
- transfer the file
funcIp2c.php
to theip2c
folder on the server, - transfer the content of the
Php
folder to the server, in the folder you created - edit variable
$path
in the filecount.php
, with the path from you home directory to the folderYOUR_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, - secure
YOUR_FOLDER
with a.htaccess
or something similar.