Blog Of Sem: PHPBOT DOVIZ KURLARI - NOBETCI ECZANE KKTC

PHPBOT DOVIZ KURLARI - NOBETCI ECZANE KKTC

<strong>(<?php echo date("d/m/Y")
?>
) DOVİZ KURLARI <br>

</strong>
<BR></BR>
<?php

$link = "http://www.kktcmerkezbankasi.org/";
$parcala = '@<table border="0" cellpadding="3" class="mbnet_center sticky-enabled">(.*?)a href="/veriler/doviz_kurlari/kur_sorgulama"@si';
$botara = str_replace(array("\n","\r","\t"), NULL, file_get_contents($link));
preg_match_all($parcala, $botara, $baslik);


echo $baslik[0][0];

?>


-----------------------------------------------------

doviz kurları2

<?php
$xml = simplexml_load_file("http://www.kktcmerkezbankasi.org/kur/gunluk.xml");
        echo '<table>';
        echo ' <thead>
          <tr>
            <th>#</th>
            <th>Alış</th>
            <th>Satış</th>
          </tr>
        </thead>';
        echo ' <tbody>';
        foreach ($xml->Resmi_Kurlar->Resmi_Kur as $resmi_kur) {

            echo '<tr>
            <td>' . $resmi_kur->Sembol . '</td>
            <td>' . number_format((float) $resmi_kur->Doviz_Alis, 2, '.', ',') . ' TL</td>
            <td>' . number_format((float) $resmi_kur->Doviz_Satis, 2, '.', ',') . ' TL</td>
         
          </tr>';
        }
        echo '</table>';

?>



------------------------------------------------------------------------------


<BR></BR>
<BR></BR>
<strong>(<?php echo date("d/m/Y")
?>
) NÖBETÇİ ECZANELER<br>

</strong>
<BR></BR>
<?php

$link = "http://www.kteb.org/";
$parcala = '@<div id="ContentPlaceHolderDefault_CpRightContent_ManageDutyPharmacies_4_UpdatePanel1">(.*?)<h2>@si';
$botara = str_replace(array("\n","\r","\t"), NULL, file_get_contents($link));
preg_match_all($parcala, $botara, $baslik);


echo $baslik[0][0];

?>

No comments:

Post a Comment