Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | PHP | stats_read.php SEARCH    

stats_read.php

  Libraries
Admin Panel JavaScript Library
alertEngineEx.js
channels.js
gui.k
miodb_lib.php
mioEngine.js
miolib.js
mio_wlib.php
optionsMenu.js
popupAlert.kLIB
popupAlertEx.js
scrollingTicker.js
stats.js
stats_read.php
stats_write.php
window_resizable.k
xmlFeed.js
xmlSettings.js

  TechNotes
About MioEngine
About MioScript
Adding a Login feature
Admin Panel Configuration File: Account
Admin Panel Configuration File: Alerts
Admin Panel Configuration File: Channels
Admin Panel Configuration File: Servers
Admin Panel Configuration File: Software
Admin Panel Configuration File: Tasks
Admin Panel Installation Troubleshooting
Deploying an application remotely
Get the real size of a web page
How to create a Business Card
How to create a Desktop Alert
How to create a Desktop Ticker
How to create a Scrolling Alert Software
How to create a Scrolling Ticker
How to create a simple RSS Reader
How to debug
Installing Admin Panel on a server
LCD Monitor Chart: Screen Resolution, Size, Pitch, Display Area
Managing read marks
Measuring Elements in JavaScript
Media center remote control
Mio File Format
MioScript: Conditions
MioScript: Events
MioScript: Functions
MioScript: Loops
MioScript: Variables and Data Types
Programming MioScript
Statistics: How to track users and actions
Where to host Mioplanet Admin Panel
XML Configuration File Format

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>