+ Reply to Thread
Results 1 to 8 of 8

Thread: 1 min crons...

  1. #1
    cjholderplayer is offline x10Hosting Member cjholderplayer is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    11

    1 min crons...

    My site requires 1 minute cron jobs. Is this acceptable?

    Please reply ..

    -CJ

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: 1 min crons...

    No, unless you are on paid. 5 minutes is the minimum for free accounts. Why do you need such a quick interval? There are ways to simulate this without being so resource intensive.
    Last edited by garrettroyce; 12-20-2009 at 09:56 AM.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    cjholderplayer is offline x10Hosting Member cjholderplayer is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    11

    Re: 1 min crons...

    I am running a RPG This needs the 1 minute cron for the energy bar, brave bar, Jail and Hosp time ... Ect ... but i could find a script to do it without crons but may take a while ..
    Last edited by cjholderplayer; 12-20-2009 at 10:00 AM.

  4. #4
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: 1 min crons...

    All you would need to do is put a iframe at the bottom of the page for the game and have it load your cron script.

    On your page:
    Code:
    <IFrame Src="path/to/cron.php" Scrolling=No Frameborder=0
    Marginheight=0 Marginwidth=0 Width=1 Height=1 />
    Make sure cron.php will print out the follow at it's completion:
    Code:
    <Meta Http-equiv="Refresh" Content="5  />
    Replacing path/to/cron.php with your real path and content="5" with how many seconds until the refresh.

    Modified from the code here: http://www.frontpagewebmaster.com/m-116141/tm.htm
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  5. #5
    cjholderplayer is offline x10Hosting Member cjholderplayer is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    11

    Re: 1 min crons...

    Thank you! I will try this ..

    Would you like to join my game?

  6. #6
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: 1 min crons...

    Yeah, no problem. I can't join right now, I'm supposed to be working on my own project and I get distracted too easily
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  7. #7
    cjholderplayer is offline x10Hosting Member cjholderplayer is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    11

    Re: 1 min crons...

    :laugh: What project is that? And no problem ... I only started the game yesterday :P My friend and i are still thinking of crime ideas and Items ect ..

  8. #8
    Sharky's Avatar
    Sharky is offline Admiral Awesome Sharky will become famous soon enough
    Join Date
    Oct 2007
    Location
    Outside the USA
    Posts
    3,306

    Re: 1 min crons...

    Just be aware if you end up using mega-resources on every run of the script, it'll suspend you for excessive resource use. Just FYI.
    The physics is theoretical but the fun is real.

+ Reply to Thread

Similar Threads

  1. Crons Help with text based game
    By montanna in forum Programming Help
    Replies: 5
    Last Post: 02-13-2008, 06:05 PM
  2. Minute Crons
    By fahimtm in forum Free Hosting
    Replies: 1
    Last Post: 10-28-2007, 09:14 AM
  3. How Do Crons work??
    By eternal-empire in forum Free Hosting
    Replies: 15
    Last Post: 10-18-2007, 04:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers