i have this very simple php script:
<?php
require 'functions.php';
$token = "some-number";
$id = "other-number";
$albums = get_url_contents("https://graph.facebook.com/".$id."/albums?access_token=".$token);
$aObject = json_decode($albums, true);
foreach ($aObject['data'] as $i => $a) {
$photos = get_url_contents("https://graph.facebook.com/".$a['id']."/photos?access_token=".$token);
$bObject = json_decode($photos, true);
foreach ($bObject['data'] as $y => $b) {
if (strpos($b['name'],"#test1") !== false) {
echo($b['name']."<br>".$b['source']."<br>".$b['created_time']."<br>");
}
}
}
?>
The execution time is always more than 10 seconds, is any way to notify the user with a perceptual text or something?
ok I learned something new.
it is possible. Look there: http://bytes.com/topic/php/answers/5153-status-note-scripts-run-long-time
You could display message at the beginning of the script execution and hide it via javascript on the end of the execution.
I hope you understand what I mean