Differences between PHP VC6 and VC9, NonThreadSafe, and ThreadSafe

Source: Internet
Author: User
The differences between the PHP version VC6 and VC9, NonThreadSafe, and ThreadSafe: to update a PHP version, the PHP windows version has been separated, see the http://windows.php.net/d PHP version VC6 and VC9, Non Thread Safe and Thread Safe difference

Want to update a PHP version, PHP windows version has been separated, see http://windows.php.net/download/, but there are many different versions, including VC9, VC6 ,? X86 Non Thread Safe, x86 Thread Safe, does not seem to have x64 version (now especially like to use 64-bit software), there are a lot of versions, the main differences are as follows:

VC6 is compiled using the Visual Studio 6 compiler. if you are using Apache + PHP in windows, select VC6.

VC9 is compiled using the Visual Studio 2008 compiler. if you are using IIS + PHP in windows, select VC9.

Non-Thread Safe is Non-Thread security and does not perform Thread security checks during execution;
Thread Safe is Thread security. during execution, the Thread security check is performed to prevent the new Thread from consuming system resources by starting the CGI execution mode;

In Windows, PHP can be executed in two ways: ISAPI and FastCGI.

?????? The ISAPI is executed in the form of a DLL dynamic library. it can be executed after a user request. after processing a user request, it will not disappear immediately. Therefore, thread security check is required, in this way, the program execution efficiency is improved. if you use ISAPI to execute PHP, we recommend that you select the Thread Safe version;

?????? FastCGI executes operations in a single thread, so it does not need to perform thread security checks. apart from the thread security check protection, it can improve the execution efficiency. Therefore, if FastCGI is used to execute PHP, we recommend that you select the Non-Thread Safe version.

?????? We do not recommend that you use Non-Thread Safe in the production environment.

?????

Knowledge supplement:

???? ? The abbreviation of ISAPI is Internet Server Application Programming Interface, which is the API of Internet server proposed by Microsoft. The ISAPI server extension is a DLL that can be loaded and called by the HTTP server. Internet Server Extensions, also known as Internet server applications (ISA), are used to enhance the functions of servers that comply with Internet server APIs (isapis. ISA is called by a browser application and provides similar functions to Common Gateway Interface (CGI) applications.

?????? FastCGI is a program interface that can accelerate the public Gateway Interface (CGI). CGI is a Web application that allows the Web server to call the application in the most common way. According to a FastCGI tool, FastCGI can be 3 to 30 times faster if you want to access a website and use a dedicated application software. FastCGI is a plug-in for Web servers. To achieve good performance, it requires minor changes to existing server applications (such as Perl, Tcl scripts, and C ++ programs.

???? Basically, FastCGI is a program that manages multiple CGI requests in a single step, reducing many program commands for each request. Without FastCGI, every time a user requests a service, the Web server opens a new program that can control and execute the service, and then closes it. With FastCGI, the consumption of one step will be shared by all the requests currently being processed. Unlike CGI, with FastCGI, each step runs independently of the Web server, providing more security. FastCGI is a standalone code. Its copyright belongs to Open Market, which provides FastCGI for free and uses it as a public standard. FastCGI provides the only method without intellectual property rights that can be used across platforms and on any Web server.

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: info-contact@alibabacloud.com 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.