Automatic process in PHP [duplicate]

1

I wanted to know what form (and if possible) of leaving something automatic occurring in PHP. My idea is, a site where it automatically collects data from another site and stores it in a database only that automatic, at every given time for example. The site would be hosted on a server, where without needing someone to access it (an adm for example), it would always collect this data ...

    
asked by anonymous 14.11.2014 / 18:08

1 answer

2

Your solution is using cronjob and you can find it in cPanel normally at the bottom of the page.

After opening the page, you only have to configure the time you want to increment to run the file and submit the location where the file is located on your server.

Example:

* * * * * /usr/local/bin/ficheiro.php

Legend:

[Minuto] [Hora] [Dia] [Mês] [Dia da Semana (0 = Domingo to 6 = Sábado)] [Comando]
    
14.11.2014 / 18:25