Home > Investor Relation > Shares

Shares

//CURL
require_once TEMPLATEPATH . "/functions" . "/simplehtmldom.php";
$ch = curl_init();
$timeout = 5;
// set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, 'http://finance.yahoo.com/q?s=BEST.MI');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);// display file

//echo $file_contents;
$html = str_get_html($file_contents);
$elem = $html->find(‘div[id=yfi_quote_summary_data]‘, 0);
echo ‘

BEST UNION COMPANY

(Milan: BEST.MI Codice: 427391 / ISIN: IT0004273915)

‘;
echo $elem;
echo ‘

‘;
echo ‘

Quotes delayed, except where indicated otherwise. Currency in EUR. Source: Yahoo Finance

‘;
?>

Graph

Best Union Company (BEST.MI)