PHP - Using Cronjobs.
How would one do this? I searched on google, but it couldn't find a good tutorial. My host allows the option in the control panel for it to set it up for you, but I want to learn the actual coding part just in case I never have the option available.
How would I run, say, this script every 4 hours for example? Code: [Select] <?php mysql_query("TRUNCATE logs"); ?> Similar TutorialsHi, Is there any way i can use a php script to edit crontab jobs. i use this command on my centos based server to add/edit cronjobs. . "crontab -e" I wants to manage my cronjobs with a php file to add/edit cronjobs. Thans for any help. This topic has been moved to Linux. http://www.phpfreaks.com/forums/index.php?topic=349779.0 |