http://forum.iyinet.com/php-php-hizlandiricilar/46006-t-c-merkez-bankasi-doviz-bilgisini-alma.html
Üstteki php koda karşılık asp isteyenlere...
Üstteki php koda karşılık asp isteyenlere...
PHP:
<%
Set kurlar = Server.CreateObject("msxml2.DOMDocument")
kurlar.async = false
kurlar.resolveExternals = false
kurlar.setProperty "ServerHTTPRequest" ,true
kurlar.load("http://www.tcmb.gov.tr/kurlar/today.xml")
Set sonuc =kurlar.getElementsByTagName("Currency")
dolaralis=sonuc.item(0).childnodes.item(3).nodeTypedValue
dolarsatis=sonuc.item(0).childnodes.item(4).nodeTypedValue
euroalis=sonuc.item(11).childnodes.item(3).nodeTypedValue
eurosatis=sonuc.item(11).childnodes.item(4).nodeTypedValue
%>
<table border="0" cellpadding="2" cellspacing="0" width="200">
<tr>
<td width="50"> </td>
<td width="75"><b>Alış</b></td>
<td width="75"><b>Satış</b></td>
</tr>
<tr bgcolor="#F9F9F9">
<td> <b>Dolar</b></td>
<td><b><%=dolaralis%></b></td>
<td><b><%=dolarsatis%></b></td>
</tr>
<tr bgcolor="#F7F7F7">
<td> <b>Euro</b></td>
<td><b><%=euroalis%></b></td>
<td><b><%=eurosatis%></b></td>
</tr>
</table>