title: How do I make a pause in PHP when sleep() and usleep() give me an Error 500?
body: <p>(For you nosy people): I'm designing a Utopian English assignment for school, I asked my teacher if I could create a website instead of a brochure.</p>
  
  <p>Anyways, I'm trying to get a pause in between a "while" loop. I've tried sleep() and usleep(), they just give me an error 500. I am trying to change the title of the webpage every five seconds between variable $a and variable $b. I've tried the following:</p>
  
  <pre><code>echo '&lt;title&gt;'.while (true) {.$a.sleep(5).$b.sleep(5)}.'&lt;/title&gt;';
  </code></pre>
  
  <p>and</p>
  
  <pre><code>while (true) {
      echo '&lt;title&gt;'.$a.'&lt;/title&gt;';
      sleep(5)
      echo '&lt;title&gt;'.$b.'&lt;/title&gt;';
  }
  </code></pre>