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

2006-03-18 Thread GT
;, $path) ) { $path = "D:/FTPDIR"; } This catches pretty much everything I have thrown at it.. I wouldn't mind using realpath(), if it didn't cause my regex to fail. "Stut" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > GT wrote: >

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: >>> >>>

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 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

[PHP-WIN] Question about directory & file operations

2006-01-29 Thread GT
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 path