How can I run a php file or execute a mySQL query automatically depending on the time? For example, by 12mn I want my server to automatically run somefile.php.
More: I have a LAMP setup.
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 are looking for the Cron jobs. you can schedule the PHP file to be executed with the cron and cron will take care of rest.
If you are on LAMP platform, check out how to setup cron.