Re: Grabbing dynamic pages
| From: | Rasmus Lerdorf | Date: | Fri, 07 Sep 2001 05:24:36 +0000 |
| Subject: | Re: Grabbing dynamic pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66321@lists.php.net to get a copy of this message | ||
> "To obtain your share price data you will need to get your IT department
> to write a java object or a com active x object to strip out the unnecessary
> html so that you are just left with your share price information."
Why don't they make this available via XML? Parsing HTML is painful.
> I was sort of wondering if there is a way to do this sort of thing with PHP?
> the only other information I have is the URL in the form of:
>
>
> http://www.asx.com.au/scripts/nd_ISAPI_50.dll/asx/research/chartsSearch.jsp?searchBy=asxCode&TimeFrame=D&asxCode=ASX
That just shows a chart. How are you supposed to parse anything out of
that?
> I tried a quick test using the filesystem functions with no success, I was
> sort of hoping for a 'Yes' / 'No" answer maybe if 'Yes' just a
> quick
> explanation.
$fp =
fopen('http://www.asx.com.au/scripts/nd_ISAPI_50.dll/asx/research/chartsSearch.jsp?searchBy=asxCode&TimeFrame=D&asxCode=ASX','r');
should work just fine to get the HTML.
-Rasmus