A
A
antonick2011-01-14 18:05:03
CodeIgniter
antonick, 2011-01-14 18:05:03

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

3 answer(s)
S
splatt, 2011-01-14
@antonic

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

K
Konstantin Kitmanov, 2011-01-14
@k12th

<script>
window.setInterval(function() {
    window.location.reload(true)
}, 3*60*1000)
</script>

T
torsion, 2011-01-15
@torsion

cron

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question