On Sun, 5 Aug 2001, Craig Westerman wrote:
>
><?
>$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?
>
echo $head[1];
http://www.php.net/manual/en/function.ereg.php
--
"We only begin to live when we conceive life as Tragedy..."
- W. B. Yeats
--
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]