Samsung Note3 has several versions of PHP with multiple versions of the analysis explained

Source: Internet
Author: User
Tags vc9 microsoft c
PHP version mainly divided into three branches: PHP4/PHP5/PHP6
Among them, PHP4 is too old, the poor support for OO has basically been eliminated, it is not detailed.
And PHP6 because there is no application on the production line, but also basically a concept product, so also not detailed.

The PHP5 version is divided into three main branches: PHP5.2 versions, php5.2.x and PHP5.3
So how do we choose the version that applies to our project?
The previous version of PHP5.2 is not worth considering because of some functional flaws or bugs.
Mainstream PHP programs have the best compatibility with php5.2.x, and the upgrade of each version number brings security and stability improvements, so pick the latest version. At present, the newest PHP5.2 series is PHP5.2.14
And if the product is self-development of their own use, PHP5.3 in some aspects of the more advantageous, in the stability of a better, increased a lot of PHP5.2 does not have the function, such as built-in php-fpm, more perfect garbage collection algorithm, the introduction of namespaces, SQLITE3 support and so on, is a version worth considering for the deployment project.

In addition to the version number, the same version number of the PHP version is also different, and in the choice of PHP extension should be noted.

VC6 and VC9
For VC6 or VC9 version of the choice, the PHP official website has a detailed description
The original is as follows
Which version do I choose?
If you is using PHP with Apache 1 or Apache2 from you need to use the VC6 versions of PHP
If you is using PHP with IIS should use the VC9 versions of PHP
VC6 Versions is compiled with the legacy Visual Studio 6 Compiler
VC9 Versions is compiled with the Visual Studio compiler and has improvements in performance and stability. The VC9 versions require to the Microsoft C + + runtime (x86) or the Microsoft C + + runtime (x64) Installe D
Do not use VC9 version with binaries

Which version should I choose?
If you use PHP under Apache1 or apache2, you should choose VC6 version.
If you use PHP under IIS you should choose the version of VC9
VC6 version is compiled with visual Studio6
VC9 is compiled with Visual Studio 2008 and improves performance and stability. VC9 version of PHP requires you to install Microsoft C + + Runtime
Do not use the VC9 version under Apache

TS and NTS
TS refers to thread Safety, which is threaded, and is typically selected when IIS is loaded in ISAPI mode.
NTS is the None-thread Safe, usually in fast CGI run time to choose this version, with better performance.
Here are some information from
The first Windows version of PHP3.0.17, released on October 20, 2000, started with a thread-safe version, because unlike the Linux/unix system, which works in a multi-process manner, Windows systems work in a multi-threaded way. It is very slow to run PHP as CGI under IIS, because the CGI pattern is built on a multi-process basis, not multithreaded. In general, we will configure PHP to run in ISAPI way, ISAPI is multi-threaded way, so much faster. There is a problem, however, that many commonly used PHP extensions are developed with Linux/unix's multi-process thinking, which can be faulted when running in ISAPI mode. Therefore, the CGI mode under IIS is the safest way to run PHP, but the CGI mode requires reloading and uninstalling the entire PHP environment for each HTTP request, which consumes a huge amount.
To take into account the efficiency and security of PHP under IIS, Microsoft has given the fastcgi solution. FastCGI can allow the PHP process to be reused instead of every new request to re-open a process. FastCGI can also allow several processes to execute simultaneously. This solves the problem that the CGI process pattern consumes too much, and the CGI process pattern does not have the advantage of the thread security problem.
Therefore, if you are using ISAPI to run PHP, you must use the thread safe version, while running PHP in fastcgi mode, there is no need to use thread security, with none thread safe (NTS, non-thread-safe) Version to better improve efficiency.

How do I see the version of PHP currently running? A very simple way is to phpinfo ();
Thread Safety Disabled is nts,enabled is TS
Configure command to see the VC98 typeface is Vc6,compiler marked MSVC9 (Visual C + + 2008) is VC9

In addition, by the way, in the case of Windows more concise and convenient PHP configuration method, what to teach online copy php.ini to the Windows directory, copy Xxxxx.dll to System32, too ugly.
1, download the zip version of PHP
2, download the corresponding extension, modify the good php.ini, add module mapping
3, the environment variable in the path plus PHP storage directory. As long as one is enough,/bin and/ext do not need to add.
4, the environment variable defines a PHPRC variable, the content is the storage path of the php.ini.
Complete. Many articles mention the need to restart the system, but from what I have seen, it is not necessary to restart the Web service at most.

If you are using Linux, ignore this article.
Revision: 2010-11-03

    1. Looked at the changes of cabbage (, IIS installation php-cgi,3, 42 steps can be omitted, the ISAPI method is required.
    2. The PHP version under the name of Windows is more appropriate to explain

At the last, recently thinking a lot of things, if the collation of the lack of depth and strength, but also need to thick thin hair.

The above describes the Samsung Note3 has several versions of PHP multiple versions of the analysis, including the Samsung Note3 has a few versions of the content, I hope to be interested in PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.