Top Apps

[exec]
echo „

Top Apps kostenlos

„;

echo „

„;

$count = 0;
while($count < 10) { $topfree = simplexml_load_file('http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topfreeapplications/sf=143443/limit=10/xml?partnerId=2003&TD_PARAM=http%3A%2F%2Fclkuk.tradedoubler.com%2Fclick%3Fp%3D23761%26a%3D1637538%26url%3D'); $title = $topfree->entry[$count]->title;
$id = $topfree->entry[$count]->id;
$zahl = $count+1;
echo „

„;
$count++;
}
echo „

Platz
App Titel
iTunes Link
„.$zahl.“. „.$title.“

„;
echo „

„;
echo „

Top Apps kostenpflichtig

„;

$topfree = simplexml_load_file(‚http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/sf=143443/limit=10/xml?partnerId=2003&TD_PARAM=http%3A%2F%2Fclkuk.tradedoubler.com%2Fclick%3Fp%3D23761%26a%3D1637538%26url%3D‘);

//Fetch all namespaces
$namespaces = $topfree->getNamespaces(true);

//Register them with their prefixes
foreach ($namespaces as $prefix => $ns)
{
$topfree->registerXPathNamespace($prefix, $ns);
}

$price = $topfree->xpath(‚//im:price‘);

echo „

„;
$count = 0;
while($count < 8) { $title = $topfree->entry[$count]->title;
$id = $topfree->entry[$count]->id;
$zahl = $count+1;
$count2 = ($count*1);
echo „

„;
$count++;
}
echo „

App Titel
iTunes
„.$zahl.“. „.substr($title,0, 60).“ „.substr($price[$count2][amount],0, -3).“€

„;

[/exec]