www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to run a script every X Days

  1. #1
    Join Date
    Oct 2005
    Posts
    102

    How to run a script every X Days

    Hey

    I'm making this php game of sorts, and I need this script to run automatically every X days, at X time.

    I would post this in PHP, but, I think that it may be impossible in PHP. I have cPanel, so I have all the scripts that are avaliable in that.

    So, does anyone know which language I could use to be able to run this php script every X days?

    Thanks.

  2. #2
    Join Date
    Feb 2005
    Posts
    1,018
    Look for an option in cpanel called 'cron job'. Basically this is software on your server that can run a specified script when you want to.

  3. #3
    Join Date
    Oct 2005
    Posts
    102
    Ok, thanks.

    Now, is there any way to get nit-picky, and tell it to turn off after X amount of times that it was runed?

    Thanks.

  4. #4
    Join Date
    Feb 2005
    Posts
    1,018
    Just tell it to run for x many days. You do have to do some research yourself you know. Look into what a cron job actually is.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles