4
I’ve always been interested in how long my code runs. The problem is that I don’t quite understand how the execution of PHP code works. Below are the questions:
On the server, the PHP code is executed at each request or it is always working?
If it is always running, it creates a new execution for each new visitor?
If it is not always running, is there any way to keep it running? (even after the customer has left the site)
On the Internet I only found tutorials about the syntax of the language and how to increase the running time (which makes no sense if I don’t know how it works).
Just to complement, PHP is not a server, the server is apache, Nginx, iis, etc. The server that "creates a new execution instance". As for running time, it is the time limit that php can be "open".
– twsouza