title: PHP scheduler without cron
body: <p>I want to run my php script for every 5 minutes. Here is my PHP code.</p>
  
  <pre><code>function call_remote_file($url){
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);   
  curl_setopt($ch, CURLOPT_HEADER, 0);
  curl_exec($ch);
  curl_close($ch);
  }
  set_time_limit(0);
  
  $root='http://mywebsiteurl'; //remote location of the invoking and the working script
  
  $url=$root."invoker.php";
  $workurl=$root."script.php";
  
  call_remote_file($workurl);//call working script
  sleep(60*5);// wait for 300 seconds.
  call_remote_file($url); //call again this script 
  </code></pre>
  
  <p>I run this code once. It works perfectly, even after i close the entire browser window. </p>
  
  <p>The problem is the stops working if i turn of my system's internet connect. </p>
  
  <p>How to solve this problem. Please help me out.</p>