Home > Javascript, MS SQL, PHP, Website Design > Php/javascript Tracking Cookie

Php/javascript Tracking Cookie

March 28th, 2009

Please submit a php cookie which I can have hosted on my server. It is to send an email to a designated email address using sendmail every time the cookie is called. I will embed this to my main template as a javascript src:

<script type=”text/javascript” src=”http://www.mydomain.com/stats/track.php”></script>

*****
NOTE: THIS IS AN EXAMPLE, THE CODE YOU SEND ME SHOULD SEND AN EMAIL SIMILARLY OR AS CLOSE TO THE FOLLOWING AS POSSIBLE… IT DOES NOT HAVE TO BE 100% THE SAME.
*****

[UNIQUE_ID] => Scv2wH8AAAEAACFy6mwAAAAA
[HTTP_HOST] => thecurrentdomain
[HTTP_USER_AGENT] =>
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
[HTTP_ACCEPT_ENCODING] => gzip,deflate
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
[HTTP_KEEP_ALIVE] => 300
[HTTP_CONNECTION] => keep-alive
[HTTP_REFERER] => http://www.refferdomain.com/
[PATH] => /usr/local/bin:/usr/bin:/bin
[SERVER_SIGNATURE] => <address>Apache/2 Server at www.serverdomain.com Port 80</address>
[SERVER_SOFTWARE] => Apache/2
[SERVER_NAME] => www.servername.com
[SERVER_ADDR] => server address
[SERVER_PORT] => port
[REMOTE_ADDR] => remote address
[DOCUMENT_ROOT] => doc root
[SERVER_ADMIN] => to be set or retrieved in a config file
[SCRIPT_FILENAME] => path of the script
[REMOTE_PORT] => remote port
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] =>
[SCRIPT_NAME] => name of the php file
[PHP_SELF] =>
[REQUEST_TIME] => timestamp and datestamp


Php/javascript Tracking Cookie

Comments are closed.
Bear