How to update a web page written in PHP on schedule?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
34 views
In CodeIgniter has a function of sending mail. When you refresh the page, for example info.dom.ru/reports/mail is the select in the DB and sending the messages.

How do I make that the page has been updated automatically according to a schedule and can it all be implemented?

Thank you.
by | 34 views

3 Answers

0 like 0 dislike
Using any scheduler like cron.
You can directly through the php interpreter:
/usr/local/php5/bin/php /path/script.php
If you need to go through mod_rewrite, it's possible using wget, for example:
/usr/bin/wget -O /dev/null -q info.dom.ru/reports/mail
by
0 like 0 dislike
\rwindow.setInterval(function() {\rwindow.location.reload(true)\r}, 3*60*1000)\r
by
0 like 0 dislike
cron
by
110,608 questions
257,186 answers
0 comments
27,943 users