jefargrafx
Instructor
below is the error I'mgetting when trying to fetch stock quote from yahoo
Warning: fopen() [function.fopen]: php_hostconnect: connect failed in c:\inetpub\ on line 18
Warning: fopen( [function.fopen]: failed to create stream: Bad file descriptor in c:\inetpub\ on line 18
Warning: fgetcsv(): supplied argument is not a valid stream resource in c:\inetpub\ on line 21
here is the code that get is the quote:
// A link to a Yahoo source that provides Stock Quotes and Info in CSV format.
$URL = ("
// Open the URL (to Yahoo to grab the Stock quote Info)
$file = fopen("$URL","r"
;
is there someting wrong with my $url variable
work great in the browser url address bar?
I checked the php manual with out any luck?
what do yall think?
thanks in advance
jef
Warning: fopen() [function.fopen]: php_hostconnect: connect failed in c:\inetpub\ on line 18
Warning: fopen( [function.fopen]: failed to create stream: Bad file descriptor in c:\inetpub\ on line 18
Warning: fgetcsv(): supplied argument is not a valid stream resource in c:\inetpub\ on line 21
here is the code that get is the quote:
// A link to a Yahoo source that provides Stock Quotes and Info in CSV format.
$URL = ("
// Open the URL (to Yahoo to grab the Stock quote Info)
$file = fopen("$URL","r"

is there someting wrong with my $url variable
work great in the browser url address bar?
I checked the php manual with out any luck?
what do yall think?
thanks in advance
jef