Overview - PHP process model per request
What is it?
PHP process model per request means that each time a web server receives a request for a PHP page, it starts a fresh process to run the PHP code. This process loads the script, executes it from top to bottom, sends the output back to the user, and then ends. No data or state is kept between requests unless explicitly saved outside the process.
Why it matters
This model exists to keep web applications simple and secure by isolating each request. Without it, one request could accidentally affect another, causing bugs or security risks. It also means PHP scripts always start with a clean slate, which helps developers avoid complex state management.
Where it fits
Before learning this, you should understand basic web servers and how PHP scripts run. After this, you can learn about PHP session management, persistent storage, and advanced performance techniques like opcode caching or long-running PHP processes.