Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

crontab

Discussion in 'General Discussion' started by layoutfx, Feb 15, 2003.

  1. layoutfx

    layoutfx Registered

    Joined:
    Feb 15, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    what would the script be for the crontab if the php script was......



    if($action == &reset&)
    {


    echo &Game successfully reset&;
    $resetb = mysql_query(&update userdb set fightstoday=0, age=age+1, hp_left=hp, zeni2=zeni2+350, spirit=10, posts=0, days=days-1, weed=weed+1&);
    $update_everyone = mysql_query(&update userdb set jailed='N'&);
    $update_bannings = mysql_query(&update bannings set days=days-1&);

    echo &&p&[&a href=admin.php&Back&/a&]&;

    }




    ?????????
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. SprintSlash

    SprintSlash Well-Known Member

    Joined:
    Jan 18, 2003
    Messages:
    163
    Likes Received:
    0
    Trophy Points:
    166
    You save the part inside { } into a separate php file, and then just have crontab run that php file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice