Jump to content

time / cron


ghqwerty

Recommended Posts

so im wanting to add a bit of reality to my website and i dont know what to use or where to look for decent tutorials on it

 

what im wanting to do is have a limit on stuf, say extortions so that a user can only do it 1 every , say, 24 hours

 

could someone please explain to me what i ahve to learn and show me a good site for a tutorial of this

 

thanks a million

Matty

Link to comment
Share on other sites

Err, what you just asked has nothing to do with cron.  All you have to do is add a last_action column or whatever and store a time, and then if that time isn't more than 24 hours before the current time, they can't perform whatever action they are trying to do.

Link to comment
Share on other sites

so add a column to my database and then when they try and do an extortion it checks that time so say do the current time - last action and if that is less than the time i want say echo " please wait x mor minutes"

 

is the time measured in seconds or miliseconds again ?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.