title: How to delay 2 seconds in PHP to include?
body: <p>I want this PHP script to wait 2 sec before including an sp.php (server panel).
  The <code>sleep(2);</code> doesn´t work for me (It doesn´t do anything at all.)</p>
  <p>My code:</p>
  <pre><code>&lt;?php
  $cookie_name = &quot;sc&quot;;
  ?&gt;
  &lt;?php
  if(!isset($_COOKIE[$cookie_name])) {
      include 'noserver.php';
  } else {
      echo &quot;Server found&quot;;
      sleep(2);
      include 'sp.php';
  }
  ?&gt;
  </code></pre>
  <p>Any ideas? It`s for the server hosting web.</p>