Restrictions on PHP

https://mediabook.site/

I wanted to know if there are any restrictions on executing PHP scripts from outside the browser or from cron. ؟

That’s a very simple question to answer: you cannot execute PHP scripts without initiating it with a browser, and you cannot setup cron jobs on our hosting.

What are you looking to do exactly?

I want to run a cronjob file to update the site information every 15 minutes. Since the hosting does not support the cron add-on, I wanted to know if an external site like easzycron used it, would it work or not?

No

Hello, and welcome to the InfinityFree Forum!

To further explain, here is the documentation relating to your question and the answers that follow:


Bypassing the no-cron limit would result in a suspension. And, it probably won’t work due to the security system.

Given that Cron is disabled, your best best is to write your PHP script to do whatever you need it to, and then set up a (password protected?) page to run it. (a bit like the wp_cron page for wordpress). This way you can still run the jobs when you want, you just have to do it manually :slight_smile:

If you need to execute a script (like for cache cleanup etc) peridically, you can create a normal php page, and then call the URL from an external service (Like for example a Windows Powershell script on your system) periodically, like once or twice a day, or whatever you need.

I don’t know if this is considered bypassing cron limitation(I hope not) but admin can shed lights on it.

It won’t work.

And yes, if by any means it worked, it is considered bypassing the limitation and is against the rules.