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 );
>
> while (false !== ($file = $d->read())) {
>     if( substr( $file, 0, 1 ) == "." ) {
>         continue;
>     }
>     $fp = fopen( $dir . $file, "r" );
>     $contentArray = split( "<!--[a-z ]-->", fread( $fp, $file, filesize(
> $dir . $file ) ) )
>     //deal with $contentArray here
>     fclose( $fp );
> }
>
> Is that what you had in mind?
>
>
> "Jlake" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hello
> >
> > I have a folder full of html pages that I need to extract the content
> from.
> > They all have <!-- content start --> and <!--content end --> comment
tags
> > surrounding the content. I need an easy way (not one at a time) to
extract
> > that content and place it in a new template.
> >
> > Any ideas are appreciated. Im assuming it will have to be some sort of
> > strpos and substr thing, but I'm not sure how to automate my process
> >
> > Thanks,
> >
> > J.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to