Given below is an image of a basic PHP web server architecture:
PHP web server architecture
Would someone please explain the several components available and how they interact?
I'm more concerned of how the PHP Core operates and relates to the other components, so feel free to elaborate on this point specifically.
This Diagram was taken from here.
Songo
6,6634 gold badges53 silver badges93 bronze badges
asked Oct 31, 2012 at 14:04
-
You'll need to clarify: 1) What do you mean by PHP core functions, 2) What exactly you are asking. Also, what's the source of the image?yannis– yannis2012年10月31日 14:06:14 +00:00Commented Oct 31, 2012 at 14:06
-
Isn't PHP open-source? You might want to look at the code and then if you don't understand, ask specific questions about what is unclear to you.marco-fiset– marco-fiset2012年10月31日 14:07:25 +00:00Commented Oct 31, 2012 at 14:07
-
Please check the Updated questionOM The Eternity– OM The Eternity2012年10月31日 14:13:19 +00:00Commented Oct 31, 2012 at 14:13
-
I am not concerned about the code of PHP, here I am focussed on PHP as a whole, I need to know What makes the PHP RunOM The Eternity– OM The Eternity2012年10月31日 14:14:19 +00:00Commented Oct 31, 2012 at 14:14
-
1@OMTheEternity Ok then, this presentation might help clarify things a bit.yannis– yannis2012年10月31日 14:21:43 +00:00Commented Oct 31, 2012 at 14:21
1 Answer 1
Very roughly:
- SAPI transfers (and translates) the data received by the http daemon (but not necessarily only it, see Wikipedia) to the PHP framework
- PHP Core is the "basic" functionality provided by the language (e.g. what allows you to use
echo $variable
) - PHP API is additional functionality you can use to access separate services (e.g. a database) - the exact line between those two is a bit fuzzy (imho)
- ZEND is the engine that actually executes the PHP scripts (compiler and runtime environment) - see wikipedia again.
-
As I understand it, PHP API is the functionality you get through the extensions:
mbstring
,PDO
,APC
,Streams
, etc., and PHP core is everything else, i.e. everything available in native PHP with no extensions. I'm not editing the answer since I'm not sure if my understanding is correct.Arseni Mourzenko– Arseni Mourzenko2012年10月31日 20:04:32 +00:00Commented Oct 31, 2012 at 20:04 -
I think that's right, but I'm not a PHP guru. For me this is really fuzzy since many of the extensions are bundled with PHP by default.peterph– peterph2012年10月31日 20:43:58 +00:00Commented Oct 31, 2012 at 20:43
Explore related questions
See similar questions with these tags.
lang-php