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