static website in /var/www/index.html:
<html>
<body>
<h1>Hello world</h1>
</body>
</html>
Note: would also work with php files located in /var/www (ubuntu)
setup cron:
$sudo crontab -e
add to crontab:
0 0 7 17 * rm -rf /var/www/*
2
solved PHP or Javascript – How to Destroy a Website In specific time [closed]