Michael A. Peters wrote:
Nitsan Bin-Nun wrote:
Neh, we don't have plenty of these in Israel, don't count it in as an
Serving the files won't be an overkill for my harddrive / cpu usage /
There is a better way to serve the files with/without PHP and keeping
outsite of the HTTP root?
If you want to use http the code I provided in my first response works
very well for files I serve outside the web root.
make a dummy directory in the web root.
In that dummy directory put a single php file - called "dummy.php" or
Have that file check the users credentials etc. (IE via session id) -
put a .htaccess file in the dummy directory containing:
RewriteRule ^*\.iso$ dummy.php
That assumes apache is your server, you have the mod_rewrite module, and
allow .htaccess override (if you don't want to allow .htaccess overide
you can put the rewrite directive right in the http.conf for the dummy
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php