VC6, VC9, TS, NTS version differences and usage in PHP

Source: Internet
Author: User
Tags vc9
PHP VC6, VC9, TS, NTS version differences and usage

1. The difference between VC6 and VC9:

VC6version is usedVisual Studio 6Compiler compiled if yourPHPis to useApacheto set up, then you chooseVC6version.
VC9 version is usedVisual StudioCompiler compiled if yourPHPis to useIISto set up, then you chooseVC9version.
VC9 version is forIISThe version of the server, noAPACHEthe support, whileVC6Version pairIISand theApacheall provide support

2. The difference between TS and NTS:

The Windows version of PHP starts with the thread safe and nonethread safe from version 5.2.1.

In the first place, it is a thread safe to understand the literal meaning that thread security is performed in order to prevent the new requirements from exhausting system resources by starting the CGI execution of new threads. Non thread safe is non-threaded and does not thread (thread) security checks at execution time.

3. Two ways of executing PHP: ISAPI and fastcgi.

ISAPI execution method is used in the form of DLL dynamic library, can be executed after the user request, after processing a user request will not disappear immediately, so the need for thread security check, so as to improve the execution efficiency of the program, so if the ISAPI to execute PHP, Recommended Choice Threadsafe version;

fastcgi execution is performed in a single thread, so there is no need for thread security checks, and the removal of thread safety checks can improve execution efficiency, so if PHP is executed in fastcgi, it is recommended to choose the Nonthread safe version.

Through Phpinfo (); Look at the thread Safety item in it, this project is to see if it is thread safe, if yes: enabled, generally it should be TS version, otherwise it is version nts.


  • Related Article

    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.