Answer the question
In order to leave comments, you need to log in
How to update a web page written in PHP on a schedule?
CodeIgniter implements the function of sending mail. When a page is updated, for example info.dom.ru/reports/mail , a select goes to the database and messages are sent.
How can I make the page update automatically according to the schedule and is it possible to implement this at all?
Thank you.
Answer the question
In order to leave comments, you need to log in
Through any scheduler, for example, cron.
You can directly through the php interpreter:
/usr/local/php5/bin/php /path/script.php
If you need to go through mod_rewrite, you can use wget, for example:
/usr/bin/wget -O /dev/null -q info. dom.ru/reports/mail
<script>
window.setInterval(function() {
window.location.reload(true)
}, 3*60*1000)
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question