Arkadaşlar bu kodları localhosta deniyorum şuan kulandıgım sitenin rankını gösteriyor ama siteye upload edince rankları 0 olarak gösteriyor bu sorunu nasıl çözerim. Kodlar çalişiyor ama rankları 0 olarka gösteriyor tek sorun bu localhostta denedigimde normal şekilde rankımı gösteriyor.
Localhost -- UploadWeb
Kod:
<?php
$url = 'https://www.X.com';
$alexa = simplexml_load_file('http://data.alexa.com/data?cli=10&url=' . $url);
$globalRank = number_format((int)$alexa->SD->POPULARITY['TEXT']);
$countryCode = $alexa->SD->COUNTRY['CODE'];
$countryName = $alexa->SD->COUNTRY['NAME'];
$countryRank = number_format((int)$alexa->SD->COUNTRY['RANK']);
echo "Global Rank: " . $globalRank;
echo '<hr />';
echo "Country Rank: " . $countryName . ' ' . $countryRank;
?>
Kod:
<iframe src="https://X.com/alexa.php"></iframe>
Localhost -- UploadWeb
Son düzenleme: