我正在運行這個PHP腳本來獲取396個Facebook用戶的個人資料照片。 43個結果後循環不起作用。出了什麼問題?請指導。謝謝。For循環不能工作超過43次
<html>
<head>
</head>
<body>
<?php
error_reporting (0);
for ($i = 4; $i <= 400; $i++)
{
$to_send = "http://graph.facebook.com/";
$to_send_new = $to_send.$i;
$content = file_get_contents($to_send_new);
$parsed = json_decode($content);
$link = $parsed->link;
$link = str_replace("http://www.facebook.com","https://graph.facebook.com",$link);
$link .="/picture?width=6000&height=6000";
?>
<img src=' <?php echo $link ?>' >
<br>
<?php
}
?>
</body>
</html>
暫停也許? –
任何錯誤...? –
這可能是某種API調節... – Lix