Cron jobs

I have free hosting plan for: http://necco.infy.uk/

Do I have access to cron jobs in CPanel?

Hi and welcome to the forum! Cron jobs aren’t available on free hosting since almost 2 years; for more information please read this announcement:

7 Likes

Thanks a lot for your prompt reply!

3 Likes

you can use (no sorry but admin said no cron job, sorry about that)

No, you can’t.

Also, what I wrote in that announcement:

Please do not try to find alternatives, any attempts to reproduce this functionality will be blocked.

7 Likes

Its not Cron, but I have found a viable alternative in some situations.

I’d like to start by saying I’ve not tried this on Infinity Free yet, and before doing it, I’d need to double check the TOS\CronJobs post, to see if it’s legit. So take this with a pinch of salt. And obviously if admin says its against TOS, DONT DO IT…

On my own server at home, I have some strange requirements. I have a home automation & media server, that amoung other things monitors details about my chickens, and house (which lights are on, which smart plugs are on ext).

I wanted the tempriture of my chicken coop to be updated every 15 minutes, but only if I was looking at it (I didn’t see the point in running cron jobs when I’m not checking the information, since I don’t log it anywhere)

On the page in question, I have a PHP script that when run, checks a table in my database. The table looks something like this:

Job Next Output
Job 1 11:15 11/04/25 No Error
Job 2 12:30 11/04/25 Error - Unable to connect to Lights Server

What the PHP script does is look at the database when the page loads, for its own job, and if we are past the time and date in the “Next” column, it’ll execute, and can save any output into the output column

There are probably better ways of doing this, but thats how I did it. And it obviously only uses system resources when the page is being accessed.

IF there’s enough intrest, and its demed to be fair and within the TOC’s I could do some testing and make post and template to share?

2 Likes

If the PHP script is ran when a visitor loads your page, that’s allowed (And is pretty much exactly how WP-Cron runs when there is no con task configured)

6 Likes

I thought that would be the case. But I didn’t want to say for certain without some confirmation :slight_smile:

Thanks

3 Likes

The site is working well and showing a full page in html and css with no images. 2 or 3 photos of your business should be attached to your html pages like a slider.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Business Image Slider</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>

  <div class="slider">
    <div class="slides">
      <input type="radio" name="radio-btn" id="radio1" checked>
      <input type="radio" name="radio-btn" id="radio2">
      <input type="radio" name="radio-btn" id="radio3">

      <div class="slide first">
        <img src="images/photo1.jpg" alt="Business Photo 1">
      </div>
      <div class="slide">
        <img src="images/photo2.jpg" alt="Business Photo 2">
      </div>
      <div class="slide">
        <img src="images/photo3.jpg" alt="Business Photo 3">
      </div>

      <div class="navigation-manual">
        <label for="radio1" class="manual-btn"></label>
        <label for="radio2" class="manual-btn"></label>
        <label for="radio3" class="manual-btn"></label>
      </div>
    </div>
  </div>

</body>
</html>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.