$from = 'USD'; $to = 'TRY'; $guntarih = date('d.m.Y H:i:s'); $amount = '1' $string = $amount.'&from='.$from.'&to='.$to; $google_url = 'http://www.google.com/finance/converter?a='.$string; $result = file_get_contents($google_url); $result = explode('', $result); $converted_amount = explode(' ', $result[1]); $conversion = $converted_amount[0]; echo $conversion;