A
A
adast2015-12-14 14:01:47
PHP
adast, 2015-12-14 14:01:47

How to loop through a PHP script?

There is a php script - let's call it a VK bot, but this script only works if you refresh the page.
How to force it to be executed cyclically?
Preferably without a browser, on the server side, but you can do without it.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ilya Beloborodov, 2015-12-14
@kowap

cron

H
holfza, 2015-12-14
@holfza

https://ru.wikipedia.org/wiki/Cron

N
nepster-web, 2015-12-14
@nepster-web

php is not really suitable for such tasks. As I understand it, you need something like a demon.
If, say, the ability to run a script once a minute is allowed, you can use cron.
daemon - habrahabr.ru/post/134620
cron - rus-linux.net/MyLDP/admin/cron.html

R
Rustamka Vorontsov, 2015-12-14
@rmfordev

install screen
php /your/script.php
or cron

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question