Re: getting values inside PHP from outside script
| From: | Chris Lambert | Date: | Mon, 27 Aug 2001 01:15:00 +0000 |
| Subject: | Re: getting values inside PHP from outside script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64569@lists.php.net to get a copy of this message | ||
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 - chris@whitecrown.net
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
----- Original Message -----
From: Scott Mebberson <scott@redbluedesign.com>
To: <php-general@lists.php.net>
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: php-general-unsubscribe@lists.php.net
| For additional commands, e-mail: php-general-help@lists.php.net
| To contact the list administrators, e-mail: php-list-admin@lists.php.net
|
|
|