Protecting a file via PHP.
| From: | Steve Jackson | Date: | Tue, 16 Sep 2003 07:58:26 +0000 |
| Subject: | Protecting a file via PHP. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162716@lists.php.net to get a copy of this message | ||
I just read this:
http://zend.com/zend/trick/tricks-august-2001.php
To protect a file via PHP.
What does this part mean in the serving the files part:
define('FILEDIR', '/mnt/dos/');
Do I define the directory where the file is served from? Or do I define
a directory to which the file is served to (a temp) or what? No matter
what I've tried I get no error message and the browser (IE6) just hangs
so it appears that PHP is trying to serve the file but failing for some
reason.
What is that directory I am supposed to define?
What am I doing wrong?
Steve Jackson
Web Development and Marketing Manager
Viola Systems Ltd.
http://www.violasystems.com
stephen.jackson@violasystems.com
Mobile +358 50 343 5159