Re: Query
| From: | Burhan Khalid | Date: | Sun, 06 Apr 2003 01:27:01 +0000 |
| Subject: | Re: Query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142559@lists.php.net to get a copy of this message | ||
Ajay Lal wrote:
Can you please spend some time with my doubt... My query is that ... Is there any option or function in PHP to implement automatic updation of web pages with the latest contents from other sites. Like news from news sites etc. Or do you have any idea about doing it. Thank you for spending your valuable time for me Expecting your helpful replyAjay : There are a few ways to go about this : 1. Use cURL to read the pages and their relevant data, parse it, and stick it on your site. 2. If the site that you want has an RSS/RDF feed, PHP can parse that information using the xml/rss functions. 3. If you are on a unix box, you can copy a page on that site, and then at an iterval copy another page, and run diff on it to see if it changes (this is the most rediculous way of doing it, but I have seen it done). -- Burhan Khalid phplist[at]meidomus[dot]com