Code Snippets Php

//this is the url of our csv file
$url = "http://finance.yahoo.com/d/quotes.csv?s=^DJI&f=sl1d1t1c1ohgv&e=.csv";
//open it for reading
$fp = fopen($url , "r");
//if no connection exists display error message
if (!fp)
{
echo "could not connect to the site";
}
else
{
//store the csv file info in the array $data
$data = fgetcsv($fp,1000,",");
//close the file
fclose($fp);
?>










descriptionlatest figure
Market
last price
date
time
change
open
high
low

}
?>