bende mynet kapatığı için bu kodu scripte oturtamıyorum yardımcı olabilen arkadaşlara teşşekkür ederim
$tcmb_today =$satir = @file("http://www.mynet.com/include/finans/ticker/asp/smalldata.asp");
if($tcmb_today)
{
$usd = explode(";", $satir[1] );
$euro = explode(";", $satir[3]);
$altin = explode(";", $satir[2]);
$imkb100 = explode(";", $satir[5]);
$sifir = "0";
$content = "<div class=\"curr3\"><table><tr>";
$content .= "<td class=\"logo\"></td>";
if ($imkb100[2] > $sifir) {
$content .= "<td class=\"imkb100 green\"><br><b>$imkb100[1]</b> %$imkb100[2]</td><td class=\"up\"></td>";
} else {
$content .= "<td class=\"imkb100 red\"><br><b>$imkb100[1]</b> %$imkb100[2]</td><td class=\"down\"></td>";
}
if ($altin[2] > $sifir) {
$content .= "<td class=\"altin green\"><br><b>$altin[1]</b> %$altin[2]</td><td class=\"up\"></td>";
}
else {
$content .= "<td class=\"altin red\"><br><b>$altin[1]</b> %$altin[2]</td><td class=\"down\"></td>";
}
if ($usd[2] > $sifir) {
$content .= "<td class=\"usd green\"><br><b>$usd[1]</b> %$usd[2]</td><td class=\"up\"></td>";
}
else {
$content .= "<td class=\"usd red\"><br><b>$usd[1]</b> %$usd[2]</td><td class=\"down\"></td>";
}
if ($euro[2] > $sifir) {
$content .= "<td class=\"euro green\"><br><b>$euro[1]</b> %$euro[2]</td><td class=\"up\"></td>";
}
else {
$content .= "<td class=\"euro red\"><br><b>$euro[1]</b> %$euro[2]</td><td class=\"down\"></td>";
}
}
else
{
$content = "<center>Serverla İletişim sağlanamadı<br>Su an icin doviz kurlari gosterilemiyor.<br> Tesekkur Ederiz.</center>";
}
$content .= "</tr></table></div>";
echo "$content";
?>