{source}
<!-- You can place html anywhere within the source tags -->


<script language="javascript" type="text/javascript">
// You can place JavaScript like this

</script>
<?php
$symbol = "ACI.TO";
require_once('simple_html_dom.php');
// $rss_feed = $_POST['url'];
$rss_feed = 'https://ca.finance.yahoo.com/quote/'.$symbol.'?p='.$symbol;
$content = file_get_contents($rss_feed);
// echo $content;
// $content = json_encode($content);
$html = str_get_html($content);
// echo $html;
$data = $html->find('span[data-reactid=34]',1)->plaintext;
// var_dump($data);
$data2 = $html->find('span[data-reactid=35]',0)->plaintext;
//echo $data;
$data1=substr($data, 0, 4);

$data3=substr($data2, 0, 5);
$data4=substr($data2, 0, 1);
if ($data4 == "+")
{
$data3=substr($data2, 0, 5);
} else
{
$data3=substr($data2, 0, 4);
}


$stockInfo = "TSX: ACI ". "$". $data1;
//$stockInfo = "TSE: IRON Last Trade "."$".$data1." Cahnge".$data
echo $stockInfo;


?>
{/source}