GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  PHP
Go To First  |  Previous Question  |  Next Question 
 PHP  |  Question 10 of 74    Print  
how to make a download page in own site, which i can know that how many file has been loaded by particular user or particular ipaddress

  
Total Answers and Comments: 3 Last Update: October 31, 2006     Asked by: mrbaliram 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Rahul Thipse
 
Here is code // Give actually File_name1 path from remote server header("Content-Disposition: attachment; filename=".$file_name1); header("Content-type: application/octet-stream"); readfile($file_path1);FromRahul Thipse

Above answer was rated as good by the following members:
brijbhushansh, amitverma
August 31, 2006 08:55:53   #1  
gurpreet        

RE: how to make a download page in own site, which i c...
we can use hyperlink having URL where file are kept. and we only allow regisetered user to download. from session of user we can get the user detail
 
Is this answer useful? Yes | No
September 15, 2006 07:33:34   #2  
Kiran        

RE: how to make a download page in own site, which i c...
We can log the IP addresses in one database table while downloading the file. This way we can count and check the no. of rows inserted for a particular download.
 
Is this answer useful? Yes | No
October 31, 2006 00:10:39   #3  
Rahul Thipse        

RE: how to make a download page in own site, which i c...
Here is code // Give actually File_name1 path from remote server header( Content-Disposition: attachment; filename .$file_name1); header( Content-type: application/octet-stream ); readfile($file_path1);FromRahul Thipse
 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape