title: PHP Sleep function With While Loop
body: <p>I am using Ubuntu Server 14.04 I have some issue in my script ...script give me response very well if i use die instead of sleep after echo in else condition but when i use sleep(3600) after echo in else condition it is not giving me any response ...this is my code</p>
  
  <pre><code>date_default_timezone_set("Europe/London");
  
  $st_time = '12:00';
  
  $et_time = '18:00';
  
  $cur_time = date("H:i");
  
  while (1) {
  
      if (($cur_time &lt; $et_time) &amp;&amp; ($cur_time &gt; $st_time)) {
          //Enter and perform Some function
      } else {
          echo 'sleep for one hour Bye';      
          sleep(3600)
      }
  }
  </code></pre>