FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to check user work history





rajeshkr
hi to all,

Hello friends, I just start working with php and i got a assignment to do that is check user work details,
Like when a user loged in after that whatever he did (which which page he visit, what he download etc etc) after loged in and before logged out.
So if any one of you have any idea about this type of work or any guidence you can give me so that i could able to do this. than i will be very thankful.

Thanks in Advance
Regards
Rajesh Rathor
rajehkrathor@gmail.com
Marcuzzo
I don't believe this can be done with PHP.
I think you would be looking more at a desktop application.
and I'm not sure if this is allowed as this is invasion of privacy
jmraker
About the only way that PHP could do that would be to write a proxy server in PHP and have every program setup to use the settings of the proxy.

If it's just what was downloaded you could write a function that makes a list of every file and compares it with the previous list of files, or write a function that makes a list of every file that's been modified since a certain date.

http://us.php.net/manual/en/function.glob.php
http://php.net/manual/en/function.filemtime.php
http://www.phpmyproxy.com/
http://sourceforge.net/projects/php-proxy/

If you're a beginner, writing a proxy server in PHP should not be your first assignment.
rvec
I'm guessing your assignment is making a list of all the pages a user visited on your site?

Take a look at these: http://php.net/manual/en/reserved.variables.server.php and especially the REQUEST_URI.
I think you should be able to log those in a text file or mysql table. To also log downloads, you could link downloads to download.php?file=file.zip or something like that, and have a download.php file like this:

Code:

<?php
// Here put your visitor counter logic.

switch ($_GET['file']) {
  case 'file.zip':
  case 'some_other_file.rar':
    file_put_contents('files/' . $_GET['file']);
    break;
  default:
    die('File not found.');
}
Related topics
Possible Hacker?
Nintendo Revolution Thread
Favorite Free E-mail
REsume Format
Your online routine
My New Favorite Optical Dilusion
I Learned Binary Today :D
Bullets and Casings
Is god down with computers?
Are you computer/internet addicted?
Can you check video history for WINDOWS XP WMP?
Can someone please help me with my website?
Check licensed work?
Problem with a MySQL database
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.