Makeshift Stock Ticker without all of the stupid advertisements that widgets provide...
Thank you for all of your help!!
<?php
$ch = curl_init();
$symbol = 'USO';
curl_setopt( $ch, CURLOPT_URL, "http://download.finance.yahoo.com/d/quotes.csv?s=".$symbol."&f=sl1d1t1c1ohgv&e=.csv" );
curl_setopt( $ch, CURLOPT_HEADER, false );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$output = curl_exec( $ch );
curl_close( $ch );
$contents = explode( ',', str_replace( '"', '', $output ) );
$status = ($contents[4] >= 0) ? 'green' : 'red';
$abscontent = abs($contents[4]);
echo "US Oil Fund (USO)<p>$$contents[1] <img src='images/".$status."arrow.jpg'> ".sprintf("%01.2f", abs($contents[4]));?><