Re: fopen
| From: | Greg Donald | Date: | Sat, 02 Mar 2002 20:42:17 +0000 |
| Subject: | Re: fopen | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86916@lists.php.net to get a copy of this message | ||
On Sat, 2 Mar 2002, Craig Westerman wrote:
>How can I use fopen to retrieve just one html table out of a whole web page.
>
>I need to extract just this table (shown below) from this web page:
>http://quotes.nasdaq.com/quote.dll?page=multi&mode=stock&symbol=drooy
fopen() will pull the page, yes. But then you will have to parse through
it and get just the part you want, or get rid of the parts you don't want.
You will need regular expressions and probably some string functions:
http://www.php.net/manual/en/ref.regex.php
http://www.php.net/manual/en/ref.strings.php
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------