Automatic process in PHP

Asked

Viewed 100 times

1

I wanted to know how to (and if possible) leave 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 automatically, at each 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...

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 need to set the time you want to increment for the file execution and submit the location where the file is on your server.

Example:

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

Caption:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.