Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by odor ( 13 years ago )
http://codepad.viper-7.com/
<?php
$baseurl = "http://mtrfacebookgame.com/api_get_gallery_content.php?page=";
$i = 1;
$url = $baseurl . $i;
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $url);
$output = curl_exec($ch);
//echo $output;
$jobj = json_decode($output);
//var_dump($jobj);
$total = $jobj->totalPage;
echo "total " . $total . "<br />";
$bigarray = array();
for ($i = 1; $i <= 2; $i++)
{
$url = $baseurl . $i;
curl_setopt($ch, CURLOPT_URL, $url);
$output = curl_exec($ch);
$jobj = json_decode($output);
$bigarray = array_merge($bigarray, $jobj->dataArray);
}
$baseurl = "http://mtrfacebookgame.com/";
foreach($bigarray as $obj)
{
echo "<a >photo_url . "'><img >photo_url . "' /></a>";
//echo "<hr />";
}
?>
Revise this Paste
Parent: 64427