Library stats_read.php | Language: PHP
|
The purpose of this PHP script is to retrieve tracking data saved on the server by the script stats_write.php.
Data is returned in XML format.
This script can be called by a server or a client script.
URL Arguments
The script receive your request via the arguments sent with the URL.
.../stats_read.php?software&year=&pid=
| |
This URL returns the number of users of the specified software for the specified year.
year is the year. If not specified, data is returned for the current year.
pid is the product ID.
|
.../stats_read.php?trackingID&year=...&gid=...
| |
This URL returns the hits for the specified group ID and year.
year is the year. If not specified, data is returned for the current year.
gid is the group ID. (product ID in most of the time)
|
Retrieving the data
The data is returned in an XML document as follow.
Example of XML code returned for the number of users
| |
The first n is for the first day of the month, the second n is the second day, etc.
<TRACKING_INFO>
^^<HITS month="1">n,n,n,n,....,n</HITS>
^^...
</TRACKING_INFO>
|
Example of XML code returned for a tracking ID
| |
The first n is for the first month of the year, the second n is for the second month, etc.
<TRACKING_INFO>
^^<HITS trackingID="...">n,n,n,n,....,n</HITS>
^^...
</TRACKING_INFO>
|
|