Use PHP to create, edit and delete crontab jobs?

Below is the code to create cronjob on a server
`

usage: crontab [-u user] file
crontab [-u user] [ -e | -l | -r ]
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)


<?
$output = shell_exec('crontab -l');
file_put_contents('/tmp/crontab.txt', $output.'* * * * * NEW_CRON'.PHP_EOL);
echo exec('crontab /tmp/crontab.txt');
?>

`

Latest date format (British) or (General)

`

//For Insert in date base--
$valid_from = ($_REQUEST['valid_from'] == '') ? '' : StringUtility::setFormatedDateBritish($_REQUEST['valid_from']);

//For view in textfield--
value="<?php ?echo ($valid_from == '') ? '' : StringUtility::getFormatedDateBritish($valid_from); ?>"

//if date format is simple then use?getFormatedDate instead of?getFormatedDateBritish

`

after a time period function calling

$(document).ready(function(){
fadeInFadeOut();
var a = 0;
function fadeInFadeOut(){
setTimeout(function(){
if(a == 0){
$(‘#fade’).html(“0121 348 7690”).fadeIn(“slow”);
a=1;
fadeInFadeOut();
}else{
$(‘#fade’).html(“CALL US FREE”).fadeIn(“slow”);
a=0;
fadeInFadeOut();
}
},3000
);
}
})

odd even tr color

$j = 0;
foreach ($student_notes as $i => $value) {
$j = ($j == 0) ? 1 : 0;
$bg_color = ($j == 0) ? “” : “bgcolor=’#f5f5f5′”;
$updatedBy = Admin::getAdminUserById($value[‘updated_by’]);
?>
<tr <?php echo $bg_color; ?>>