Please explain what you mean by put a PHP scrip in cron.<br><br>crontab files use standard shell script. But each entry can call any executable file on the system. It's not always a good idea but it can.<br><br>If you want to run a PHP script at a certain time type <br><br>crontab -e <br><br>and add the line <br><br>* * * * * /directory/file.php<br><br>Read the crontab man file 'man 5 crontab' to see what each of the stars must be replaced with.<br><br>Also if you look at the crontab it will have a mailto entry in the beginning. This is the user who will get an email with any output from the program that is run. If you want to minimize the output you may want to add <br><br>2> /dev/null > /dev/null <br><br>so any output goes directly to /dev/null avoiding 4000 message in roots email over a period of a week. <br><br>Good luck<br><br>-cm<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.