Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-29-2003, 10:34 AM   PM User | #1
kab_184
Regular Coder

 
Join Date: Jun 2002
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
kab_184 is an unknown quantity at this point
page opened or not? tracking?

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?
__________________
Move on....
kab_184 is offline   Reply With Quote
Old 11-01-2003, 08:28 PM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
You'd give the link in the email an id number, so the link would be something like

http://yourdomain.com/afunnycard.php...d=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 Code:
<?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);
?>
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks

Last edited by Nightfire; 11-01-2003 at 08:30 PM..
Nightfire is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:23 PM.


Advertisement
Log in to turn off these ads.