ok thanks for the info
Next question: Crons?
Daily Update Cron Message:
/home/content/k/i/d/kidkwik/html/cron_day.php: line 1: ?php: No such file or directory
/home/content/k/i/d/kidkwik/html/cron_day.php: line 2: include: command not found
/home/content/k/i/d/kidkwik/html/cron_day.php: line 3: global: command not found
/home/content/k/i/d/kidkwik/html/cron_day.php: line 4: syntax error near unexpected token `'cron_day.php','',$_SERVER['SCRIPT_NAME']'
/home/content/k/i/d/kidkwik/html/cron_day.php: line 4: `$path=$_SERVER['HTTP_HOST'].str_replace('cron_day.php','',$_SERVER['SCRIPT_NAME']);
------------------------------------
Cron Daily Update.php
<?php
include "mysql.php";
global $c, $mykey;
$path=$_SERVER['HTTP_HOST'].str_replace('cron_day.php','',$_SERVER['SCRIPT_NAME']);
if($_GET['code'] != md5($path.$mykey))
{
exit;
}
mysql_query("UPDATE users SET daysold=daysold+1",$c);
mysql_query("UPDATE users SET mailban=mailban-1 WHERE mailban > 0",$c);
mysql_query("UPDATE fedjail set fed_days=fed_days-1",$c);
mysql_query("UPDATE users u LEFT JOIN fedjail f ON u.fedjail=f.fed_id SET u.fedjail=0 WHERE f.fed_days=0",$c);
mysql_query("DELETE FROM fedjail WHERE fed_days=0",$c);
?>
and the 5 minute revive message I get:
/home/content/k/i/d/kidkwik/html/cron_fivemins.php: line 1: ?php: No such file or directory
/home/content/k/i/d/kidkwik/html/cron_fivemins.php: line 2: include: command not found
/home/content/k/i/d/kidkwik/html/cron_fivemins.php: line 3: global: command not found
/home/content/k/i/d/kidkwik/html/cron_fivemins.php: line 4: syntax error near unexpected token `'cron_fivemins.php','',$_SERVER['SCRIPT_NAME']'
/home/content/k/i/d/kidkwik/html/cron_fivemins.php: line 4: `$path=$_SERVER['HTTP_HOST'].str_replace('cron_fivemins.php','',$_SERVER['SCRIPT_NAME']);'
Cron 5 minute.php
<?php
include "mysql.php";
global $c, $mykey;
$path=$_SERVER['HTTP_HOST'].str_replace('cron_fivemins.php','',$_SERVER['SCRIPT_NAME']);
if($_GET['code'] != md5($path.$mykey))
{
exit;
}
$query="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy";
$query2="UPDATE users SET energy=maxenergy WHERE energy>maxenergy";
$query3="UPDATE users SET will=will+10 WHERE will<maxwill";
$query4="UPDATE users SET will=maxwill WHERE will>maxwill";
mysql_query($query,$c) or die("\nError Executing Query 1 for updating users $i to $next\n$query\n".mysql_error()."\nError Code:".mysql_errno());
mysql_query($query2,$c) or die("\nError Executing Query 2 for updating users $i to $next\n$query2\n".mysql_error()."\nError Code:".mysql_errno());
mysql_query($query3,$c) or die("\nError Executing Query 3 for updating users $i to $next\n$query3\n".mysql_error()."\nError Code:".mysql_errno());
mysql_query($query4,$c) or die("\nError Executing Query 4 for updating users $i to $next\n$query4\n".mysql_error()."\nError Code:".mysql_errno());
$query="UPDATE users SET brave=brave+((maxbrave/10)+0.5) WHERE brave<maxbrave ";
$query2="UPDATE users SET brave=maxbrave WHERE brave>maxbrave";
$query3="UPDATE users SET hp=hp+(maxhp/3) WHERE hp<maxhp";
$query4="UPDATE users SET hp=maxhp WHERE hp>maxhp";
mysql_query($query,$c) or die("\nError Executing Query 1 for updating users $i to $next\n$query\n".mysql_error()."\nError Code:".mysql_errno());
mysql_query($query2,$c) or die("\nError Executing Query 2 for updating users $i to $next\n$query2\n".mysql_error()."\nError Code:".mysql_errno());
mysql_query($query3,$c) or die("\nError Executing Query 3 for updating users $i to $next\n$query3\n".mysql_error()."\nError Code:".mysql_errno());
mysql_query($query4,$c) or die("\nError Executing Query 4 for updating users $i to $next\n$query4\n".mysql_error()."\nError Code:".mysql_errno());
?>
The energy, brave and will bars haven't moved at all and GoDaddy's support is basically no help at all.
I have been trying different paths for two days just to get the crons to execute. Because the path they
suggested, was nothing close to what it needed. They have their own cron manager instead of cpanel
I have them executing now, but they don't seem to be doing anything.