Question about directory & file operations

From: Date: Mon, 30 Jan 2006 04:54:19 +0000
Subject: Question about directory & file operations
Groups: php.windows 
Request: Send a blank email to php-windows+get-26663@lists.php.net to get a copy of this message
I have a script on my local test website that lists all of the files in my FTP server directories. It is setup to look at absolute paths. (ie: C:/Windows) If it is called with the right parameters or the "Previous Directory" link is clicked too many times, the browser will be outside of the paths that I want them to be in... For example, the browser can address http://localhost/script.php?path=C:/ and view the contents of the C: drive. Not really what I want.. I would like to be able to lock the browser down to a particular set of directories and thier subs. Does anyone have any suggestions that might help? Thanks in advance...

« previous php.windows (#26663) next »