Re: Re: Downloads for subsrcibers only

From: Date: Sun, 01 Apr 2007 15:37:20 +0000
Subject: Re: Re: Downloads for subsrcibers only
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-251896@lists.php.net to get a copy of this message
Hi, itoctopus wrote: > Depends where you store the file, if you store the file in the database, > then it's much easier to do it. > Your idea (as it is right now) won't work, because anyone will be able to > copy and paste the link to your PDF document and download it (thus easily > overriding the logic you have in the page). > I've attached a class, called the FileManager class, which handles saving > and displaying data (virtually all types) from the database. It's extremely > easy to use. The usage is demonstrated in download.php (also attached). You > have to add some logic in order to restrict access to your files. Thanks a bunch. I'll try it tomorrow at work Warm Regards -- :wq! Mário Gamito

« previous php.general (#251896) next »