Yahoo keeps moving things around. I had the same result with a news feed.
If you research the page at
http://finance.yahoo.com/?u
you should be able to figure out how they get quotes.
good luck,
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont
Try
$content = implode('', file(URL...) );
rather than the fopen(), file pointer route.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N
You may need a user:pass appended to the URI.
On Wed, 2002-06-05 at 15:11, Anthony Ritter wrote:
The code that follows is from Welling and Thomson's book on PHP and
mysql
(page 372)
I've tried it on Apache/ MS Windows 98 / PHP and I get the following
line:
No quote available.
To illustrate what's wrong with the code from the book,
the following code works... notice what's different.
But really, you should've just loaded the URL and noticed
there's no $[0-9].[0-9] and instead it was bold.
problem solved.
$symbol=ibm;
echo h1Stock Quote for $symbol/h1\n;
4 matches
Mail list logo