LostCore Posted January 2, 2007 Share Posted January 2, 2007 Hi, i trying to do a script that get ip and date of the current user [u]when[/u] he download a file from a page accessible by username and password, and store them into a file or a database.At the moment, i have no idea about how to begin... Can anyone help me? Thanks! Link to comment https://forums.phpfreaks.com/topic/32554-get-information-when-download-a-file/ Share on other sites More sharing options...
trq Posted January 2, 2007 Share Posted January 2, 2007 Take a look at the [url=http://php.net/date]date[/url] function and the $_SERVER['REMOTE_ADDR'] variable. Link to comment https://forums.phpfreaks.com/topic/32554-get-information-when-download-a-file/#findComment-151356 Share on other sites More sharing options...
LostCore Posted January 2, 2007 Author Share Posted January 2, 2007 Yes, the problem is not how to store ip and date, but how to store them when the user download the file only. Somebody tell me that I have to use header() function properly... but how? Thanks for the answers! Link to comment https://forums.phpfreaks.com/topic/32554-get-information-when-download-a-file/#findComment-151372 Share on other sites More sharing options...
trq Posted January 2, 2007 Share Posted January 2, 2007 check out [url=http://www.phpfreaks.com/forums/index.php/topic,95433.0.html]this[/url] thread. Link to comment https://forums.phpfreaks.com/topic/32554-get-information-when-download-a-file/#findComment-151374 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.