The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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&]&;

    }




    ?????????
     
  2. SprintSlash

    SprintSlash Well-Known Member

    Joined:
    Jan 18, 2003
    Messages:
    163
    Likes Received:
    0
    Trophy Points:
    16
    You save the part inside { } into a separate php file, and then just have crontab run that php file.
     
Loading...

Share This Page