I found this little script called grab'n & pars'n on the net. It looks like
it could be very useful to learn how it does what it does. While studying it
I came up with a question.

$url = 'http://www.php.net';
$lines_array = file($url);
$lines_string = implode('', $lines_array);
eregi("<title>(.*)</title>", $lines_string, $head);
echo $head[0];

It prints out:
<title>PHP: Hypertext Preprocessor</title>

How do I modify this to get what is between the TITLE tags and not include
the TITLE tags?


Craig ><>

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to