I've been looking around for a bit and can't quite find what I'm looking to
do.

I want to read a file (from a pattern matched start position) to (a pattern
matched end position)

$startPos = strpos($file, '<!- start ->');
$endPos = strpos($file, '<!- end ->');

$stuff = fread($file, ($endPos - $startPos));

something like that ?

Thanks,

J.

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

Reply via email to