A
Anonymous
Guest
Hi all,
I am curious to know how the zend engine works.
I have searched through the net but could not find the explanation for the following question:
Question1
When a client requests a php page, how does the zend engine response to it?
what I mean is that does the engine create a new thread for each page requested or a new thread for few request of the same page.
Or perhaps a process? (but this would resemble a CGI)
Question2
And why it seems like there is not thread programming in php, does the php engine guarantee that all php pages are thread-safe. How about a global variable? Does a global variable in php only stay within the scope of a particular request or session only?
I would appreciate any explanations.
Thank you very much.
I am curious to know how the zend engine works.
I have searched through the net but could not find the explanation for the following question:
Question1
When a client requests a php page, how does the zend engine response to it?
what I mean is that does the engine create a new thread for each page requested or a new thread for few request of the same page.
Or perhaps a process? (but this would resemble a CGI)
Question2
And why it seems like there is not thread programming in php, does the php engine guarantee that all php pages are thread-safe. How about a global variable? Does a global variable in php only stay within the scope of a particular request or session only?
I would appreciate any explanations.
Thank you very much.