Skip to content

Instantly share code, notes, and snippets.

View gustavgenberg's full-sized avatar

Gustav Genberg gustavgenberg

View GitHub Profile
@gustavgenberg
gustavgenberg / Crontab.class.php
Last active November 5, 2020 05:10
Easy crontab manager for PHP. Uses shell_exec!
<?php
class Crontab {
/*
(c) Gustav Genberg 2017
This script uses PHP shell_exec! Make sure it is enabled before using!
Also make sure that the user running this script (usually www-data) have access to the crontab command!