There is a site https://ru.stackoverflow.com/Index.php A code in the PHP file that finds the temperature and adds it to the database. To make this happen in the browser, click on F5 or update and the PHP code is triggered 1 time.

So here. I need to make sure that every 10 minutes the whole process takes place. How to do it?

Heard about cron, but they are all paid, are there free options?

  • one
    The question is very interesting, but not clarified ... What does it mean for you to "Launch a site every 10 minutes"? - GrayHoax
  • It's simple. Someone or something makes the transition to a link, say ru.stackoverflow.com/Index.php . And some code is registered in the php file. Suppose a record in the database of some information. - Dima
  • If I understand you correctly. If not, then "Starting the site once every 10 minutes" means that in an hour there will be 6 requests to the site, which are requested in 10 minutes. 60 minutes / 10 min = 6 times - Dima
  • Are you interested in running this php code every 10 minutes? Or do you need a specific URL to be visited at this time? - GrayHoax
  • 3
    "Where to find the crown?" - this is something very strange, as well as "the launch of the site every 10 minutes." If you need to run a PHP script every 10 minutes, and for some reason it’s a pity to spend money on normal hosting functionality, you can use a crutch in the style endlessly (at least if the server does not have a time limit and the memory of the script) of running PHP -script, which is worth sleep for the desired period of inactivity. The second option is to periodically automatically access this script. For this you can use the appropriate services. - Regent

3 answers 3

Try this option. This web cron is something like a web version of cron . And also take a look at these can help:

  • SetCronJob - www.setcronjob.com

  • Cronless - cronless.com

  • EasyCron - www.easycron.com

  • Online Cron Jobs - www.onlinecronjobs.com

  • Corntab - www.corntab.com

  • getCron - www.getcron.com

  • Author, describe the functionality in more detail, an interesting service ... - GrayHoax
  • @ lev09, Thank you!) - Dima
  • @GrayHoax I can only say that this web is analogous to the well-known scheduler of CRON. I can not say much, because he never used. - lev09

If you are talking about CRON (not inclined in the Russian language), as a scheduler application, then the question is not entirely clear, namely, what will you run if the scheduler is on a different machine from hosting the site?

Website on the Internet does not require a launch (depending on the implementation). He just is! Perhaps you mean some kind of individual functionality? Clarify the question and I will update the answer :)

UPD :

Visiting a specific URL can be configured in the monitoring, for example, in free or shareware. Try setting up a Site24x7 . After registration, you can set up 5 "monitors" for free. If you create WebSite Monitor , the robot will check the specified URL once at a specified time. In addition, if an error occurs in your php code, Site24x7 will report it by mail.

Please note that monitoring the URL may not occur strictly once every 10 minutes (if you specify this time), but with some error.

    If you want to monitor the availability of the site (although it is not completely obvious from the current question wording), here are a couple of ways right away:

    Using Google Docs

    Script on php + mysql