So I was curious as to if this was possible. Would it be possible to have a PHP script go to a url at a set interval, say 30 minutes?
Share
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.
Cron jobs
Yes, just use cron jobs for calling PHP script in 30-minute intervals.
Also see my answer to another question: How to execute PHP code periodically in an automatic way
Delayed Unix call
There is also another option that should work on Unix and involves calling external script with delay without blocking the current script. It may look like this:
although the availability of this solution depends on the system and
safe_modesettings. For details aboutexec()function see the documentation.