View Full Version : page opened or not? tracking?

10-29-2003, 11:34 AM

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?

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


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


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

$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);