Hi
i’m trying to read a csv file located on another server…It seam to open the file without problem but when i want to display the data, it give me this error: Missing Format Variable.
Does anyone know why i have this error? The same code but pointing to a local file works fine…
Here is the code…taken on php.net…
$row = 1;
$handle = fopen("http://finance.yahoo.com/d/quotes.csv?s=MANS.OB&f=sl1d1t1c1ohgv&e=.csv", "r");
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
$num = count($data);
echo "<p> $num fields in line $row: <br /></p>\
";
$row++;
for ($c=0; $c < $num; $c++) {
echo $data[$c] . "<br />\
";
}
}
fclose($handle);
Thanks…