Re: Extracting specific data from a URL using PHP...

From: Date: Fri, 07 Jun 2002 02:42:33 +0000
Subject: Re: Extracting specific data from a URL using PHP...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101061@lists.php.net to get a copy of this message
On Friday 07 June 2002 06:57, Anthony Ritter wrote: > Newbie question. > > I understand that one can open a page off an existing website to extract > text data using a PHP script by using the fopen and fread functions. > > And by using the strip_tags() function, one can extract data without the > html markup as a literal string. > > Here's my question... > > Let's say that a html page from a website out on the 'net consists of three > paragraphs of text and four html tables. > > Within each of those tables is text. > > And let's say that the second table down has three columns - water > temperature, water level and cfs flow along with numerous records. > > Is there any way to extract *specific* data off a page - in this case - the > second table - while leaving the balance of the text and the other tables > 1, 3 and 4) alone? You need to use regular expressions. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Most burning issues generate far more heat than light. */

« previous php.general (#101061) next »