<?php $timestamp=strtotime("now"); $random=mt_rand (50000000, 150000000); $api_secret="bPalxiHsQI5tvFw4qAiX"; $md5="api_id=643260method=secure.getAppBalancerandom=".$random."timestamp=".$timestamp."v=2.0".$api_secret; $sig=md5($md5); $f=file_get_contents("http://api.vkontakte.ru/api.php?api_id=643260&test_mode=1&v=2.0&method=secure.getAppBalance×tamp=$timestamp&random=$random&sig=$sig"); echo $f; ?>