I'm having some trouble wondering if anyone can shed some light. I used to get some stock updates from yahoo, where they simply displayed some csv type info to the screen. Now they are trying to make this data download via a "Save As" dialoge instead of simply displaying it. How can I tell my PHP script to accept a download? After I get the data it works and is fine, but this download request is screwing with me.
Thanks
John
<?PHP
$fp = fopen ("http://finance.yahoo.com/d/quotes.csv?s=$item&f=sl1d1t1c1ohgv&e=.csv","r");
while ($data = @fgetcsv ($fp, 10000, ","))
{
print "$data";
}
fclose ($fp);
?>