PHP Request Lifecycle

前端 未结 3 557
深忆病人
深忆病人 2021-01-11 23:27

Okay, so I\'m relatively naive in my knowledge of the PHP VM and I\'ve been wondering about something lately. In particular, what the request lifecycle looks like in PHP for

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 00:02

    No, you are not missing anything. If you need to keep some application state, you must do it using DB, files, Memcache etc.

    As this can sound crazy if you're not used to it, it's sometimes good for scaling and other things - you keep your state in some other services, so you can easily run few instances of PHP server.

提交回复
热议问题