[PHP] Re: extract/replace the content of html pages

2004-01-05 Thread JLake
I will mess around with this I think that this will help me get to where I'm going. Thnaks, J. "Martin Helie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Not sure I understand, but it sounds like you'd want to do something like: > > $dir = "yourdir/"; > $d = dir( $dir ); > > wh

[PHP] Re: extract/replace the content of html pages

2004-01-02 Thread Martin Helie
Not sure I understand, but it sounds like you'd want to do something like: $dir = "yourdir/"; $d = dir( $dir ); while (false !== ($file = $d->read())) { if( substr( $file, 0, 1 ) == "." ) { continue; } $fp = fopen( $dir . $file, "r" ); $contentArray = split( "", fread( $fp