Re: Query

From: Date: Tue, 08 Apr 2003 03:59:29 +0000
Subject: Re: Query
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-142794@lists.php.net to get a copy of this message
Write a program to read the page (using socket programming ) of the site u want the info and parse the content for the particular tag and display ur required info in ur site .This will work untill there is some modification in their site . If this dosent work go in for some sites which provides standard API for some general info like weather , book info etc ----- Original Message ----- From: Burhan Khalid <phplist@meidomus.com> Newsgroups: php.general To: Ajay Lal <ajay@ipath.net.in>; <php-general@lists.php.net> Sent: Sunday, April 06, 2003 6:57 AM Subject: Re: [PHP] Query > 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 reply > > > > Ajay : > > 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 > >

« previous php.general (#142794) next »