Browsing articles tagged with " cronjob"
Nov
21
2011

How to run php scripts using cronjob in linux – centos

First make sure you have crontab installed. Make sure php is working properly. Now the script you want to execute make sure it has an execute chmod attribute on it. If not add like this chmod +x scriptname.php On the very first line of your php script add the following line line #!/usr/bin/php then edit your root crontab file using $ crontab -e and press ‘i’ to edit and add the following cronjob commands # [...]

Sponsors