We need to create a script (ajax or php or javascript) that will clean some tables from our database at fixed time.
We can not use server features such like Cron tab or others.
Any suggestions??? Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do a poor mans CRON by tethering the task you need to run to another script that gets run by human interaction. So, for example, when foo.php is done it calls cron.php (synchronously or asynchronously). To limit how often cron.php actually runs (preventing excessive runs) you can store the last timestamp and compare for a certain interval (say, every 600 seconds).
This all, of course, presumes there are humans visiting your site.