...

View Full Version : page opened or not? tracking?



kab_184
10-29-2003, 11:34 AM
hi

i have unix PHP pacakage with NO databse support..

i have seen cards on website which notify the sender when the reciever opens that card(page)..


now i have ecards on my site.. when i send the cards from my site page ..they go successfuly..and the other person recieves it as well.. but how can i track if that person opened that ecard or not..so how can it b done? can i t b done with simple flat file .txt?

Nightfire
11-01-2003, 09:28 PM
You'd give the link in the email an id number, so the link would be something like

http://yourdomain.com/afunnycard.php?userid=sdsr3wfdscsd

Once that's done and clicked, you'll need to get the ?userid=sdsr3wfdscsd from the url on the afunnycard.php page. To do that, use

$_GET['userid'];

Then just write that to a file by doing something similar to



<?php
$details = $_GET['userid']." Viewed the card ". date ('l dS of F Y h:i:s A') ."/n";
$fileopen = fopen("cardlog.txt","a");
fwrite($fileopen, $userid);
fclose($fileopen);
?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum