##Management analysis of website visits by PHP programming.
Before using "Control-Guest" should you configure the connection data from the database .
- TypeRecord / local.php
- TypeRecord / remote.php
//Example
$host_remote = 'localhost';//Insert your domain
$user_remote = 'user';//Insert your user
$pass_remote = 'password'; //Insert your pass_user
$db_remote = 'logs'; //Insert your name database
After that you can use the class "Control -Guest ".
require 'control.class.php';
//We called the class.
$log = new Control_guest(/*Indicate the type of record.*/);
Types of records:
- Local
- Remote
- txt
- The option 'Local' is directed to developing local scope .
- The option 'Remote' is directed to online projects.
- The option ' txt ' is aimed for any type of project because it creates log files of users ' .txt ' ;
$log -> geo();
Determine the date and time of the visit.
$log ->time();
Then leave a link to see him spelling of your time zone. +info: Time zones Create the record.
The optional parameter is : The name of the file type if you determine in case the parameter 'txt'.
//We called to method
$log -> createLog(/*May indicate an optional parameter.*/);
If you have chosen the type ' txt ' if you do not enter any name the default is 'log' . Information on time zones .
Visit of the day 15-12-14 to 06:14:26
Browser: Google Chrome
Operating System: Linux
Robot: Unknown
City: Mountain View
Ip: 74.125.195.147
Country code: US
Continent Code: NA
Alt: 37.4192
Long: -122.0574
Asn: Unknown
Isp: Google Inc.
Time zone: America/Los_Angeles
#######################################
