Chapter 16. Controllers

16.1 Controllers and request objects 357
16.2 Using Page Controllers 361
16.3 Building a Front Controller 369
16.4 Summary 376

I’ve never flown a fighter aircraft, and I don’t believe I want to try it. (Nor do I think they would let me. Those planes are expensive.) I know only what I’ve seen in documentaries: you make too sharp a turn, the G force rises steeply to 7, 8, or 9 or thereabouts, and whoops...you’re out.

You come out of the turn; eventually you regain consciousness. But...you don’t remember what happened. You start to ask questions. Who am I? Where am I? Ahhh...now I remember. I’m in a cockpit! What’s that ahead? A mountain? The ground?

PHP does this. It forgets. When PHP runs as mod_php in an Apache process ...

Get PHP in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.