The easy & ugly one line solution:

$csvalues = explode(",", implode("",
file("http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=.
csv")))

/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/

----- Original Message -----
From: Scott Mebberson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 26, 2001 9:04 PM
Subject: [PHP] getting values inside PHP from outside script


| Hi Guys,
|
| I want to write a script that retrieves quote prices off the ASX
(Australian
| Stock Exchange) and then adds it to the database.
|
| I think the only way I can do this is by using the yahoo finance
query.....
| I need to know how I can call a string within my PHP script and then get
the
| results. The results are returned in a comma delimited format. Any ideas?
|
| use
| http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=.csv
to
| see the results.
|
| thanks
|
| Scott.
|
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| To contact the list administrators, e-mail: [EMAIL PROTECTED]
|
|
|


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to