Differences in PHP5VC9, VC6, ThreadSafe, and NonThreadSafe versions

Source: Internet
Author: User
Tags vc9
PHP5VC9, VC6, ThreadSafe, NonThreadSafe different versions of PHP official website (windows. php. netdownload) 5.3 provides four versions. differences among VC9x86NonThreadSafe, VC9x86ThreadSafe, VC6x86NonThreadSafe, VC6x86 PHP5 VC9, VC6, Thread Safe, and Non-Thread Safe versions

PHP official website (http://windows.php.net/download/) 5.3 to a total of four versions, VC9 x86 Non Thread Safe, VC9 x86 Thread Safe, VC6 x86 Non Thread Safe, VC6 x86 Thread Safe, the versions are described as follows.

I. how to select the VC9 and VC6 versions of PHP5.3

VC6 is compiled using the Visual Studio 6 compiler. if your PHP is set up using Apache, select VC6.

VC9 is compiled using the Visual Studio 2008 compiler. if your PHP is set up using IIS, you can select VC9.

II. how to select the Thread Safe and Non-Thread Safe versions of PHP5.3

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

Let's take a look at two PHP execution methods: 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, if you use FastCGI 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. Therefore, we use PHP of Thread Safe.

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.