Pergunta

I have a simple website built using PHP. It is hosted on a Linux server.

I need to run a PHP script every night. How do I do this?

Will an 'open-source job scheduler in java' be able to run a PHP script?

Foi útil?

Solução

There are several possibilities.

If you have shell access to the machine you can set up a scheduled task (cron job, http://www.scrounge.org/linux/cron.html) to execute your script either by the php command line client or by a tool like curl or wget.

IF you don't have access to the shell on that machine there are several web sites that offer free cronjobs. Basically what they do is that you give them a link and the schedule when they should access your link. Just google for online cron job

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top