Run a PHP script every second using CLI
问题 I have a dedicated server running Cent OS with a Parallel PLESK panel. I need to run a PHP script every second to update my database. These is no alternative way time-wise, it needs to be updated every second. I can find my script using the URL http://www.somesite.com/phpfile.php?key=123 . Can the file be executed locally every second? Like phpfile.php ? Update: It has been a few months since I added this question. I ended up using the following code: #!/user/bin/php <?php $start = microtime