Restricting access to system files

From: Date: Mon, 20 Aug 2001 02:21:01 +0000
Subject: Restricting access to system files
Groups: php.windows 
Request: Send a blank email to php-windows+get-8944@lists.php.net to get a copy of this message
Hello, Maybe I have missed something very obvious in the setup of PHP on our Windows2000 server with IIS5. But I cannot seem to figure out how to stop people from being able to "read" any file on the system they wish by simply FOPENing the file. For instance, I tested this by writing a very simple php script that would open c:\winnt\php.ini and display the contents. This is obviously not something we want people to be able to do. Short of removing the IUSR account from having read access to everything, is there an easier way to stop PHP from allowing access outside a certain directory? Thanks, Erick

« previous php.windows (#8944) next »