On Monday 06 May 2002 08:34, Mizery De Aria wrote:
> I have stored the contents of a web page using:
>
> $src = implode("", file($url));
>
> In the source contains:
>
> <title>Random title here</title>
>
> What method can I use to store the title of the page into a variable?
> Keep in mind that the above string is part of an entire html document.
Write a regular expression to extract it. See manual -> Regular Expression
Functions (Perl-Compatible) for an example which you can use as a starting
point.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
The rose of yore is but a name, mere names are left to us.
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php