PHP Classes

cron job

Recommend this page to a friend!

      Site Change Detection  >  All threads  >  cron job  >  (Un) Subscribe thread alerts  
Subject:cron job
Summary:cron job example
Messages:2
Author:Lenamtl
Date:2014-10-06 16:03:02
 

  1. cron job   Reply   Report abuse  
Picture of Lenamtl Lenamtl - 2014-10-06 16:03:03
Hi,

Could you give a cron job script example that will work with your script.

Thanks

  2. Re: cron job   Reply   Report abuse  
Picture of Larry Wakeman Larry Wakeman - 2015-04-30 06:39:45 - In reply to message 1 from Lenamtl
I use GoDaddy hosting and all I have to do is to select the script. I think they wrap the script with some shell but for Linux the command should look something like:

php < path to script from root/scriptname.php > path to script from root/logfile.log

For windows:

C:\path to php\php.exe < D:\path to script\scriptname.php > C:\path to log\logfile.log