Progress status in a long php script in possible?
<p>i have this very simple php script:</p>

<pre><code>&lt;?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 =&gt; $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 =&gt; $b) {
        if (strpos($b['name'],"#test1") !== false) {  
            echo($b['name']."&lt;br&gt;".$b['source']."&lt;br&gt;".$b['created_time']."&lt;br&gt;");
        }
    }
}
?&gt;
</code></pre>

<p>The execution time is always more than 10 seconds, is any way to notify the user with a perceptual text or something?</p>
