Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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....

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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);
    ?>
    Last edited by Nightfire; 11-01-2003 at 08:30 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •