Re: Capturing dynamic data and storing it into a variable
| From: | Jason Wong | Date: | Mon, 06 May 2002 14:47:30 +0000 |
| Subject: | Re: Capturing dynamic data and storing it into a variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96265@lists.php.net to get a copy of this message | ||
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.
*/