Teknik Grab Harga Emas Dunia dengan PHP

Unknown Reply 6:01 AM

grab harga emas dunia
pagi-pagi enaknya iseng aja.. gak usah serius2 lah ,
berikut script buat dapetin harga emas sekedarnya saja
<?php
$URL=" http://goldprice.org/NewCharts/gold/images/
goldsilverpricesforcalculators.txt ";
$text = file_get_contents($URL);
preg_match('/XAU_IDR,(.*?);XAU_INR/', $text, $grab);
$oz=str_replace(';XAU_INR','',str_replace('XAU_IDR,','',
$grab[0]));
$g=$oz/31.1034768;
echo "Harga Emas : Rp. ".number_format($g,2,',','.')."
per gram";
?>
demonya bisa dilihat dimari: http://adzan.16mb.com/
source/gold.php
klo mo download sc-nya bisa dimari :http://
adzan.16mb.com/source/download.php?f=g
old.zip&fc=gold.source.zip

Related Posts

Tutorial 3853172945133175127
Comments
0 Comments
Facebook Comments by Media Blogger

Post a Comment

Search

Ikuti Channel Youtube Aku Yaa.. Jangan Lupa di subscribe. Terima kasih.

Popular Posts

Translate