Selection of PHP non-thread security and thread security versions

Source: Internet
Author: User
Tags vc9
: This article mainly introduces the selection skills of PHP non-thread security and thread security versions. if you are interested in PHP tutorials, please refer to it.

PHP5.2.10 (PHP5.2.10 and PHP5.2.10) and None-Thread Safe and Thread Safe are available. What are the differences between these two versions, what should I do as a user? The following is a description of Juyou.
PHP5.2.10 (PHP5.2.10 and PHP5.2.10) and None-Thread Safe and Thread Safe are available. What are the differences between these two versions, what should I do as a user? The following is a description of Juyou.

First, literally, None-Thread Safe means non-thread security, and no Thread security check is performed during execution. Thread Safe means thread security, the thread security check is performed to prevent the CGI execution method of the new thread from consuming system resources when there are new requirements.

Let's take a look at two PHP execution methods: ISAPI and FastCGI. 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 (whether with IIS 6 or IIS 7) to execute PHP, we recommend that you download and execute non-thread safe PHP (the PHP binary path has two packet encoding methods: msi, zip, please refer to the zip suite ). The Thread security check is prepared for PHP in The ISAPI mode. because many php modules are not Thread-Safe, Thread Safe PHP is required.

Speaking of this, you should know how to select the PHP version. None-Thread Safe or Thread Safe. which one do you choose?

Windows PHP version updates quickly, the latest is PHP7 has, the current Windows version can be downloaded in PHP official PHP For Windows (http://windows.php.net/download, during the download, the same version includes four versions: VC9 x86 Non Thread Safe, VC9 x86 Thread Safe, VC6 x86 Non Thread Safe, and VC6 x86 Thread Safe. So what are the differences between these versions?

The version of VC9 is compiled with legacy VS 2008, and the version of VC6 is compiled with legacy VS6.

If you are using IIS + PHP in windows, you need to download the version of VC9.
If you are using Apache + PHP in windows, you need to download the VC6 version.

Non-Thread Safe refers to Non-Thread security, and Thread Safe refers to Thread security.

If you use ISAPI to run PHP, you must use the Thread Safe version. if you run PHP in FastCGI mode, there is no need to use Thread security check, using the None Thread Safe (CNT, non-Thread secure) version can improve the efficiency.

In this way, you can easily select the applicable PHP version and download the PHP suitable for your system.

I hope this article on selection of PHP non-thread security and thread security versions will be helpful to you. if you think this website maintenance tutorial is useful, don't forget to recommend it to your friends! If you have good experience and methods, you may wish to share them with us: if everyone has an experience, we will get a bunch of additional experiences from others.

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above describes the selection skills of PHP non-thread security and thread security versions, including some content, and hope to help those who are interested in PHP tutorials.

    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.