-
Gay Journalist and erotic video producer.
As an example of a customer visit to my site www.gay-dvds-for-women-and-men.com
I put in the following lines of PHP code:
$date=date("YmdHis"); YEAR month day hour minute second
$dateL=date("D M d Y H:i:s"); DAY MONTH day YEAR HOUR:minute:second
$info= '$_SERVER'.PHP_EOL.print_r($_SERVER,true);
$info2= '$_POST'.PHP_EOL.print_r($_POST,true);
$fp = fopen('https.txt', 'a');
$FWwritethis = $date.PHP_EOL.$dateL.PHP_EOL.$info.PHP_EOL.$info2. PHP_EOL.'++++++++++++++'.PHP_EOL;
fwrite($fp, $FWwritethis);
fclose($fp);
When the first customer viewed my page (me), the code produced this text listing in the file https.txt:
Sensitive info redacted with *************
Notice now I now have TWO versions of the date, 1) UNIX and 2) something more business like:
20131031195723
Thu Oct 31 2013 19:57:23 <= My Server is in Europe, it is 19:57:23, or 7:57pm there. 12:57pm here in Las Vegas.
It is always best to save data in its purest form. Convert time zones later.
$_SERVER
Array
(
[HOME] => *************
[HTTP_HOST] => www.gay-dvds-for-women-and-men.com
[HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.71 (KHTML, like Gecko) Version/6.1 Safari/537.71
[CONTENT_LENGTH] => 53
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_REFERER] => http://www.gay-dvds-for-women-and-men.com/
[HTTP_ORIGIN] => http://www.gay-dvds-for-women-and-men.com
[CONTENT_TYPE] => application/x-www-form-urlencoded
[HTTP_DNT] => 1
[HTTP_ACCEPT_LANGUAGE] => en-us
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_COOKIE] => PHPSESSID=7aa322caa2a76ba555df6162a96c40e5; __utma=72180613.1669661938.1332502546.1381599986.1 383159436.181; __utmz=72180613.1383159436.181.49.utmcsr=dudelodge .com|utmccn=(referral)|utmcmd=referral|utmcct=/indexMobile.php
[HTTP_CONNECTION] => keep-alive
[PATH] => /usr/bin:/bin
[SERVER_SIGNATURE] => <address>Apache Server at www.gay-dvds-for-women-and-men.com Port 80</address>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => www.gay-dvds-for-women-and-men.com
[SERVER_ADDR] => *************
[SERVER_PORT] => 80
[REMOTE_ADDR] => ************* <= MY DHCP IP
[DOCUMENT_ROOT] => *************
[SERVER_ADMIN] => [no address given]
[SCRIPT_FILENAME] => *************
[REMOTE_PORT] => 57247
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => POST
[QUERY_STRING] =>
[REQUEST_URI] => /index.php
[SCRIPT_NAME] => /index.php
[PHP_SELF] => /index.php
[REQUEST_TIME_FLOAT] => 1383249442.11
[REQUEST_TIME] => 1383249442
)
$_POST
Array
(
[NICHE] => 1
[form_niche] => asian
[MyEmail] =>
[MyZIP] =>
[submit] => Asian
)
++++++++++++++
Again, this data comes with each customer hit to any of your pages. There is useful info for you. (There was nothing in the $_HTTP variable, because I have nothing in my code that uses $_HTTP apparently!)
The Customer's IP addr is $_SERVER[REMOTE_ADDR]
Where did the Customer come from? What Affiliate? $_SERVER[HTTP_REFERER]
Depends on your flavor and age of LINUX/ASP.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks