Re: downloading files

From: Date: Thu, 19 Aug 2004 17:49:56 +0000
Subject: Re: downloading files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194272@lists.php.net to get a copy of this message
Aaron Todd wrote:
I posted a simular question before and never really got an answer. The post drifted off into some other valuable information, but I still have the same question. I am trying to create a site with file downloads. The files on the server that are to be downloaded need to be protected somehow. I have already created a login page for the site so users must log in. The download files are in a directory protected by htaccess which it is my understanding that PHP can go underneath htaccess to get access to the files. My problem is where do I put this directory? I was already told to put it outside the web root directory, but I really dont know where the best place is. Anyone have a suggestion? Thanks, Aaron I use the following structure (simplified):
/path/to/web/sites /website1
     /classes   (php classes)
     /templates (page templates, as with Smarty)
     /documents (put uploaded documents here)
     /webroot   (web-accessible files here)
        /img    (static images)
        /js     (javascript files)
Hope this helps. Mattias

« previous php.general (#194272) next »