Re: Pulling Data From a Page
| From: | Robert Cummings | Date: | Mon, 06 Nov 2006 20:04:51 +0000 |
| Subject: | Re: Pulling Data From a Page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244267@lists.php.net to get a copy of this message | ||
On Mon, 2006-11-06 at 11:59 -0800, Phillip Baker wrote:
> Greetings All,
>
> Have something that I am sure is easy to do, just never done it before and
> would like some guidance here.
>
> I need to pull treasure yield percentage rates into a loan site I am working
> on.
>
> So basically I want to hit a page from another site.
> Grab the HTML file.
> Parse it for the values I am looking for.
> And then plug it into variables for use on my site.
>
> Any ideas on the best way to do this??
Probably preg_matchall()
http://www.php.net/manual/en/function.preg-match-all.php
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'