title: How do i run a php script every second?
body: <p>I am currently writing a online game. Now I have to check if an event happen (checking timestamp in database) and depending on that execute some actions. I have to check for an event every second.</p>
  
  <p>I wanted to use a cronjob but with cron you can run a script only every minute.</p>
  
  <p>My idea was to use cron and loop 60 times in my php script. But I think this isn't the best solution.</p>
  
  <p>So whats the best way to run a script every second?</p>