Restrict file access to only PHP scripts?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
jnsg
-


Joined: 30 Jun 2004
Posts: 3

PostPosted: Tue Jul 13, 2004 3:15 am    Post subject: Restrict file access to only PHP scripts? Reply with quote

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 View user's profile Send private message Send e-mail
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue Jul 13, 2004 7:28 am    Post subject: Re: Restrict file access to only PHP scripts? Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group