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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to