View previous topic :: View next topic |
Author |
Message |
jnsg -
Joined: 30 Jun 2004 Posts: 3
|
Posted: Tue Jul 13, 2004 3:15 am Post subject: Restrict file access to only PHP scripts? |
|
|
Hello, I was wondering how to set up Abyss to only allow access to certain files/directories to PHP scripts. For instance, if I wanted to make a simple database consisting of a directory with text files in it, how would I configure it so that no one could just type in the filenames to access them, but a PHP script that person ran could modify them? Also, is it possible to have PHP access files that are not even in Abyss's root document directory (and therefore not even accessible via the web)? |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue Jul 13, 2004 7:28 am Post subject: Re: Restrict file access to only PHP scripts? |
|
|
jnsg wrote: | Also, is it possible to have PHP access files that are not even in Abyss's root document directory (and therefore not even accessible via the web)? |
Yes it is--many people use this for a form of security.
For instance, you can use "fopen('C:\Path\to\file.txt');" (I don't know if I got that completely right, but you get the idea) to access a file outside Abyss. _________________ Bienvenidos! |
|
Back to top |
 |
 |
|