title: How to execute a PHP file in background for every 30 seconds
body: <p>I am working on flight portal. </p>
  
  <p>If any user book a ticket he/she will get some status like <strong>BOOKING SUCCESS</strong> / <strong>BOOKING PENDING</strong>.</p>
  
  <p>If the status is <strong>BOOKING SUCCESS</strong> the user will get a mail with the ticket details. </p>
  
  <p>In case of <strong>BOOKING PENDING</strong> a message ( your ticket is in process, you receive a message/email after the ticket confirmed) will be shown to the User.</p>
  
  <p>Now from the backend i have to run a PHP file for every 30 seconds Until i get the status Success.</p>
  
  <p>This will be a continuous process.</p>
  
  <p>Can anyone tell me with a good example. </p>
  
  <p>I will be thankful,</p>
  
  <p>Sowmya </p>