Re: [nyphp-talk] Search of directories and files on my web server

2007-08-16 Thread Steve Manes
Aaron Fischer wrote: if (is_dir($item) && $item !='.' && $item!='..') { search($path . '/' . $item); } if (is_file($item)) { $file=file($item); ... Don't forget that since you're not doing a chdir() before recursing that you're still looking at f

Re: [nyphp-talk] Search of directories and files on my web server

2007-08-16 Thread Jon Baer
Don't forget, there are good options in PEAR as well. http://pear.php.net/package/File_Find - Jon On Aug 16, 2007, at 10:42 AM, Dan Cech wrote: Aaron Fischer wrote: Greetings, I am working on a little script that will start at a specified directory on my web server and then proceed to lo

Re: [nyphp-talk] Search of directories and files on my web server

2007-08-16 Thread Edward Potter
sorry, did not see that second post. man grep :-) On 8/16/07, Edward Potter <[EMAIL PROTECTED]> wrote: > Yipes, grep -r 'foo'* [or something like that!] > > :-) ed > > On 8/16/07, Aaron Fischer <[EMAIL PROTECTED]> wrote: > > Greetings, > > > > I am working on a little script that w

Re: [nyphp-talk] Search of directories and files on my web server

2007-08-16 Thread Edward Potter
Yipes, grep -r 'foo'* [or something like that!] :-) ed On 8/16/07, Aaron Fischer <[EMAIL PROTECTED]> wrote: > Greetings, > > I am working on a little script that will start at a specified > directory on my web server and then proceed to look through all files > and sub-folders for an i

Re: [nyphp-talk] Search of directories and files on my web server

2007-08-16 Thread Aaron Fischer
Dan, thanks that did the trick. I had various echo statements in my original script but took them out for purposes of posting succinct code to the list. I didn't use grep because I don't have any exposure or experience with it. It was mentioned as an option during my original post but I

Re: [nyphp-talk] Search of directories and files on my web server

2007-08-16 Thread Dan Cech
Aaron Fischer wrote: > Greetings, > > I am working on a little script that will start at a specified directory > on my web server and then proceed to look through all files and > sub-folders for an instance of text located in a file. (This is a > follow-up of sorts to a previous post of mine from

RE: [nyphp-talk] Search of directories and files on my web server

2007-08-16 Thread Anthony Wlodarski
x230 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Wlodarski Sent: Thursday, August 16, 2007 10:39 AM To: 'NYPHP Talk' Subject: RE: [nyphp-talk] Search of directories and files on my web server I wrote this file bro

RE: [nyphp-talk] Search of directories and files on my web server

2007-08-16 Thread Anthony Wlodarski
$dh->close(); }// end of funtion printDirectory // main part of our application printDirectory(); Anthony Wlodarski Senior Technical Recruiter Shulman Fleming & Partners 646-285-0500 x230 [EMAIL PROTECTED] -----Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On B

[nyphp-talk] Search of directories and files on my web server

2007-08-16 Thread Aaron Fischer
Greetings, I am working on a little script that will start at a specified directory on my web server and then proceed to look through all files and sub-folders for an instance of text located in a file. (This is a follow-up of sorts to a previous post of mine from a week or two ago.) I g