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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top