So when using PHP on the free hosting plan after a certain amount of resources you can no longer use it and it pops up with this default page saying that all of the PHP resources have been used. Is there any way possible that before it gets to this point that all the resources are used that it shuts off the PHP and redirects you to a different page?
Yes, there is. With what you described, I wouldn’t be surprised if you hit the EP limit or the CPU limit.
What you described is temporary, it only lasts around 5 minutes. However, if you continue on that trend of every five minutes hitting the limit, you may be temporarily suspended.
Read more about the limits I talked about:
One of the limits InfinityFree enforces is the Entry Process Failures limit, also abbreviated to Entry Process limit or EP limit. This article explains what an entry process is, what the limit means and how you can control it.
What is an entry process?
Every time a request to a URL on your website is made, a new program is started to retrieve the content of that URL. This process then executes your code, sends the response to the visitor, and finally quits.
Note that one entry process is crea…
One of the limits InfinityFree enforces is the CPU limit. This article explains what the CPU limit means and how you can control it.
What does CPU usage mean and why is it limited
In the computer you’re reading this on (regardless of whether that’s a PC, laptop, tablet, phone or something else), there is a processor. This processor, or CPU, does all the calculations for all the programs running on your computer. If these programs use too much processor power, your computer will slow down, poss…
I understand that I’ve read these articles before but how can I create a redirect for when the limit of php is hit
You can’t, that’s the point of being suspended.
I agree with
@wackyblackie, since the entire point of the limit is to punish your website, not allow you the chance to redirect your visitors elsewhere.
This article explains more:
Some people see an error page on their website with the following contents:
This site / page has used all avaialble php / apache processes allowed on free hosting.
Refreshing the page once the amount of apache / php processes are reduced will cause the site to work
We would recommend upgrading your hosting account at IFastNet Premium hosting accounts, premium hosting accounts have MUCH higher resources dedicated to them.
This article explains why you may see this page, and what you can do …
So it is impossible to redirect and stop people from using PHP even before the limit is hit?
Correct. Because preventing it would use more PHP, witch would again lead to the message. It all kind of comes back to PHP.