Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top