Hi,
I am new to Unix environment. Any one can explain how I can set CRON job to run PHP script.
Thanks.
You can run it one of two ways either by having your script called by php
0,10,20,30,40,50 * * * * /usr/local/php5/bin/php /home/<USER NAME>/path/to/script.php
or by running a text based webpage reader which will run the application for you:
0,10,20,30,40,50 * * * * /usr/bin/links -dump http://mysite.com/support/auto.php
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.