<?php
$lifetime = (time() - filectime(__FILE__)) / 60;
echo $lifetime;
if ($lifetime > 1) unlink(__FILE__);
?>
<?php
$count = file_get_contents("f.txt");
echo "<div id='d'><a href='/increase.php'>+</a></div><div>{$count}</div>";
?>
<?php
$count = intval(file_get_contents("f.txt"));
$count++;
file_put_contents("f.txt",$count);
header("Location: index.php");
?>
$(document).ready(function(){
$('#contactform').on('submit', function(e){
e.preventDefault();
$.post('/admin/order/modal/addcomment', $('#contactform').serialize(),function(data){
$( "#weather-temp" ).html( "<strong>" + data + "</strong> degrees" );
});
$('input[type="text"], textarea').val('');
});
});
<ul data-wb='{
"role":"foreach",
"from":"news",
"where": {
"active":"on",
"author":"admin"
}
"limit":"10",
"sort":"data:d"
}'>
<li>{{datetime}}: {{header}}<br>{{short_text}}</li>
</ul>