Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try using functions instead: <em>Not tested</em></p> <pre><code>function r1(){ $response1 = $facebook-&gt;api('/294120253958442'.'/feed','POST',$WallPost); } function r2(){ $response2 = $facebook-&gt;api('/134804409926272'.'/feed','POST',$WallPost); } function r3(){ $response3 = $facebook-&gt;api('/202619002037'.'/feed','POST',$WallPost); } function r4(){ $response4 = $facebook-&gt;api('/30410040944'.'/feed','POST',$WallPost); } function r5(){ $response5 = $facebook-&gt;api('/103561223082520'.'/feed','POST',$WallPost); } r1();sleep(5); echo date('h:i:s') . "\n"; // time stamps should echo 5 seconds apart. r2();sleep(5); echo date('h:i:s') . "\n"; r3();sleep(5); echo date('h:i:s') . "\n"; r4();sleep(5); echo date('h:i:s') . "\n"; r5();sleep(5); echo date('h:i:s') . "\n"; </code></pre> <p>Alternatively if sleep is returning null after sleep has occurred "windows server" you can set up a timer to fire the functions. Idle time is spent looping, not the best way to go.</p> <pre><code>function r1(){ $response1 = $facebook-&gt;api('/294120253958442'.'/feed','POST',$WallPost); } function r2(){ $response2 = $facebook-&gt;api('/134804409926272'.'/feed','POST',$WallPost); } function r3(){ $response3 = $facebook-&gt;api('/202619002037'.'/feed','POST',$WallPost); } function r4(){ $response4 = $facebook-&gt;api('/30410040944'.'/feed','POST',$WallPost); } function r5(){ $response5 = $facebook-&gt;api('/103561223082520'.'/feed','POST',$WallPost); } $i=1; function timer(){ $now = time(); while ($now + 5 &gt; time()) { // do nothing } if($i&lt;5){ $i++;r'.$i.'(); echo 'posted'.date('h:i:s') . "\n"; timer(); }else{ $i=1; echo 'starting over'; timer(); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload