impulse() Posted January 18, 2007 Share Posted January 18, 2007 I have a PHP page and I want to add an AJAX script into there so every 60 seconds another PHP script is run on the server. All the tutorials only seem to explain how to use AJAX to update _POST requests when a text box looses focus. I need an infinite loop that will run every 60 seconds and within that loop it will run a PHP script. Quote Link to comment https://forums.phpfreaks.com/topic/34739-using-ajax-in-a-php-to-run-every-60-seconds/ Share on other sites More sharing options...
ober Posted January 19, 2007 Share Posted January 19, 2007 Use the Javascript timeout() command. Quote Link to comment https://forums.phpfreaks.com/topic/34739-using-ajax-in-a-php-to-run-every-60-seconds/#findComment-164436 Share on other sites More sharing options...
binxalot Posted March 22, 2007 Share Posted March 22, 2007 Thank you, you are awesome. Quote Link to comment https://forums.phpfreaks.com/topic/34739-using-ajax-in-a-php-to-run-every-60-seconds/#findComment-212759 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.