Okay, so I made a cronjob to run every two minutes and set it up to send me an email. Well, this is the cronjob. /home/sites/psychowars.com/public_html/cronjobs/energy_minute.php This is the email I receive.. nice:
/home/sites/psychowars.com/public_html/cronjobs/energy_minute.php: Permission denied
Well, this is the PHP file that's suppose to run.
<?php
require '../stats/users_stats.php';
{
if ($energy < $max_energy) {
$sql = "UPDATE users SET energy=(energy + 1) WHERE id='".$id."'";
$res = mysql_query($sql);
}
}
?>
Every 2 minutes the user should recieve 1 energy if it's less than their max energy. Any solutions on what's wrong?