function adfly($url, $key, $uid, $domain = 'adf.ly', $advert_type = 'int')
{
// base api url
$api = 'http://api.adf.ly/api.php?';
// api queries
$query = array(
'key' => $key,
'uid' => $uid,
'advert_type' => $advert_type,
'domain' => $domain,
'url' => $url
);
// full api url with query string
$api = $api . http_build_query($query);
// get data
if ($data = file_get_contents($api))
return $data;
}
if($_POST)
{
$apiKey = '7abccd03cc3005835cc61dd956b583ca';
$uId = 1234;
echo adfly($_POST['url'],$apiKey,$uId);
}
?>
Lutfen Url Giriniz :
çok sağol yaa kardeşim hay elini ayağını öpem :D