andz Posted May 24, 2009 Share Posted May 24, 2009 Good day everyone. Is it possible to create a php base cron jobs? The script will run every 10 seconds. Quote Link to comment https://forums.phpfreaks.com/topic/159511-simple-cron-script-using-php/ Share on other sites More sharing options...
MadTechie Posted May 24, 2009 Share Posted May 24, 2009 Depends what you mean "php based" can you create a cron job that runs a php script every hour and that script have 10 seconds intervals of sleep Quote Link to comment https://forums.phpfreaks.com/topic/159511-simple-cron-script-using-php/#findComment-841422 Share on other sites More sharing options...
Maq Posted May 25, 2009 Share Posted May 25, 2009 You don't create cron jobs with PHP... There should be a crontab already on the server that you can add your PHP script to. What are you doing that needs to be performed every 10 seconds? There may be a better way. Quote Link to comment https://forums.phpfreaks.com/topic/159511-simple-cron-script-using-php/#findComment-841444 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.