Re: [PHP] grabbing data from a site

2002-11-23 Thread Tom Culpepper
Try this function, Ijust wrote it for the same purpose. You just need a unique string in front of the stuff you want, and one after it. You can usually get a string of code on either end that will do this. The function will open the URL, find the anchor strings you told it, then strip them

[PHP] grabbing data from a site

2002-11-22 Thread Adam
I have the following website that i want to grab info from: http://www.bom.gov.au/products/IDV60034.shtml Say I wanted the current temperature for Melbourne from this table, what line of code would I need to tell it to get that info - ie, an ereg() expression... i'm wondering whether there are

Re: [PHP] grabbing data from a site

2002-11-22 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If the target is in well-formed XML (XHTML is an example), you could use XSLT to say 'i want the third column of a particular row - in this instance, Melbourne'. However, since few people actually adhere to standards, you're probably going to need

Re: [PHP] grabbing data from a site

2002-11-22 Thread Adam
someone gave me the following expression which uses another program and it works fine for them... is there something similar with php? wget --timeout=90 -q -O- http://www.BoM.GOV.AU/products/IDO30V01.shtml | sed '1,/Melbourne sup/d' | sed '1d;3,$d;s/.*//;s/.*//' thanks, adam. Evan Nemerson