Project Detail

Visitor Logging Script  

Visitor Logging Script is project number 202548
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: exoexo

Budget: $30-100

Created: 12/07/2007 at 20:02 EST

Bid Count: 2

Average Bid:
$ 63

12/14/2007 at 20:02 EST

Project Creator: dgrmpr
Employer Rating: 9.9722/109.9722/109.9722/109.9722/109.9722/109.9722/109.9722/109.9722/109.9722/109.9722/10 (36 reviews)

Bid On This Project
 

Description

Scope of Work:

1. Modify the following script or create an new PHP and ASP script which allows Service Buyer to place script into individual web pages to obtain email alerts and log each visit when someone visits same page.

2. Use sessions or some other method to check if the same IP visited in the past, and if so, suppress sending an email alert but capturing
each subsequent visit in the log file:


$mailHeader = "From: System Administrator <email @ domain . com> n"
. "Reply-To: email @ domain . comn";
$MailToAddress = " email @ domain . com n";
$mailHeader .= "Cc: $name <>,<>,<> rn";
$mailHeader .= "Bcc: $name <>,<>,<>,<> rn";
$MailSubject = " ";

$link="http://www . domain / visitorlog.log";
$tabfilename="visitorlog.log";

session_start();
if($_SESSION["logged"] != "yes")
{

$tmst=time();
$agent = $_SERVER['HTTP_USER_AGENT'];
$uri = $_SERVER['REQUEST_URI'];
$ip = $_SERVER['REMOTE_ADDR'];
$ref = $_SERVER['HTTP_REFERER'];


if(!file_exists($tabfilename))
{
$file = fopen($tabfilename, "w");
fclose($file);
}

$logLine = "IP: $ip || User Agent: $agent || Page: $uri || Referrer: $refn";

$file = fopen($tabfilename, "a");
fputs($file,$ip."t".date("H:i:s - m.d.Y -- ", $tmst). md5(rand."".time()). "rn");
fclose($file);

$_SESSION["logged"] = "yes";

$mailMessage = "IP Address: ".$ip." n
Query Additional IP Info: http://ws.arin.net/whois/?queryinput=".$ip." n
Time/Date Stamp: ".date("H:i:s - m.d.Y", $tmst)."n
Logfile: $link n
Unique Message Identifier: ".md5(rand."".time())." rnrn";
@mail($MailToAddress, $MailSubject , $mailMessage, $mailHeader);
?>

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

50

1 day

12-07-2007 20:14 EST

Hi, can we discuss your project in PMB?

help

 

75

3 days

12-07-2007 20:22 EST

Please see your PMB - Thanks!

help


    Bid on this Project