Re: [PHP-WIN] Question about directory & file operations

2006-03-18 Thread GT
Tried realpath... It broke my checks.. I was right back where I started. It completely hosed my regex. I did simplify my check routine $path = $_GET["path"]; if( !isset( $path ) || $path == "" || !file_exists($path) || eregi('(^.:$|^\..|^\/?\..|^\/|^.:/$)', $path) ) { $path = "D:/

Re: [PHP-WIN] Question about directory & file operations

2006-02-01 Thread GT
I'll have a peek at it.. "Stut" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > GT wrote: > >>"Stut" <[EMAIL PROTECTED]> wrote in message >>news:[EMAIL PROTECTED] >> >>>Mike wrote: >>> >>> >If it is called with the right parameters or the "Previous Directory" >link is click

Re: [PHP-WIN] Question about directory & file operations

2006-02-01 Thread Stut
GT wrote: "Stut" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Mike wrote: 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... I would like to be ab

Re: [PHP-WIN] Question about directory & file operations

2006-02-01 Thread GT
I found a much simpler way to handle this problem.. It's not pretty, but it's effective. $path = $_GET["path"]; if( !isset( $path ) || $path == "" ) { $path = "D:/FTPDIR"; } $test = $path; // keep from mangling $path... For some reason, if I did the test below using $pa

Re: [PHP-WIN] Question about directory & file operations

2006-01-30 Thread Stut
Mike wrote: 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... I would like to be able to lock the browser down to a particular set of directories and thier subs. Wh

Re: [PHP-WIN] Question about directory & file operations

2006-01-30 Thread GT
Hmmm... that sounds like it might work.. Thanks. I'll try it after I've had some sleep.. php and no sleep don't really go together. ""Mike"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> If it is called with the right parameters or the "Previous Directory" >> link is clicked to

RE: [PHP-WIN] Question about directory & file operations

2006-01-29 Thread Mike
> 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... > > I would like to be able to lock the browser down to a > particular set of directories and thier subs. > What you