A
A
ann_niki2015-08-30 20:12:14
PHP
ann_niki, 2015-08-30 20:12:14

Precompilers?

Hello!
Started learning LAMP. Now the task is to get acquainted with PHP, or rather with information about precompilers, basic PHP parameters and PHP clustering.
I asked google, but I didn’t find clear information about what it is (in particular, precompilers and clustering) (possibly crooked hands).
Please, throw sensible information for the study! =)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nazar Mokrinsky, 2015-08-30
@nazarpc

What precompilers, what clustering? What are you smoking?

O
Oleg Matrozov, 2015-08-30
@Mear

stackoverflow.com/questions/1408417/can-you-compile...

A
Alex Chistyakov, 2015-08-30
@alexclear

APC and xcache are not precompilers ("precompiler" is "what is called before the compiler", the result of the precompiler is usually fed to the input of the compiler), but opcode caches. Here: stackoverflow.com/questions/10716676/why-does-php-... there is some discussion on the topic of why PHP has opcode caches, and why it was impossible to do humanly ^W like in Java. Opcode caching in PHP is necessary in order not to read files from disk all the time and not to parse them, but to remember and reuse the results of parsing.
As for clustering - most likely, we are talking about the meaning of the word "clustering", which implies the organization of a cluster. There are two types of clusters - HA and LB (high availability and load balancing), but in the case of PHP, the concepts of HA and LB will not differ in anything, subject to one simple condition: no state should be stored locally on the application server, then yes, each request that comes to the application server must operate with data located somewhere outside, for example, in a database. User sessions must also be in the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question