3 ms·
Well, except that PHP has access to the database, sessions, cookies and the filesystem. There's a whole bunch of state right there.
by anthonyb 14y ago
Well, except that PHP has access to the database, sessions, cookies and the filesystem. There's a whole bunch of state right there.
- xyzzyz 14y agoIt also has a variables and instruction pointer. The point is that this state is not preserved between different requests.
- anthonyb 14y agoThe point is that it's still shared state, so it's possible in practice to take down your server if you manage to corrupt your database or a file on your filesystem. About the only thing you're protected against is memory leaks, and that seems to be because you have to, otherwise PHP would fall over in a big heap: https://www.google.com/search?q=php+memory+leak https://www.google.com/search?q=php+memory+leak I haven't had any problems with memory leaks running things like Django or Bottle.