Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the difference and usage of VC6, VC9, TS and NTS versions in PHP

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail about PHP VC6, VC9, TS, NTS version of the difference and usage is what, the quality of the article content is high, so Xiaobian share for everyone to make a reference, I hope you read this article after a certain understanding of related knowledge.

PHP version of the difference and usage details, in our installation of PHP modules, sometimes need to pay attention to PHP compiled version, the following explanation of PHP VC6, VC9, TS, NTS version of the difference and usage details, introduced php two ways of execution.

Difference between VC 6 and VC9:

The VC6 version is compiled using the Visual Studio 6 compiler, so if your PHP is built using Apache, you should choose the VC6 version.

The VC9 version is compiled using Visual Studio 2008 compiler, if your PHP is implemented using IIS, then you choose the VC9 version.

The VC9 version is for IIS servers and has no support for Apache, while the VC 6 version provides support for both IIS and Apache.

Difference between Ts and NTs:

PHP for Windows has been divided into Thread Safe and NoneThread Safe since version 5.2.1.

Thread Safe is thread safe, and thread safety checks are performed during execution to prevent new requests from starting CGI execution of new threads and exhausting system resources. Non Thread Safe is non-thread safe and does not perform thread safety checks at execution time.

PHP has two implementations: ISAPI and FastCGI.

ISAPI execution mode is in the form of DLL dynamic library, can be executed after being requested by the user, will not disappear immediately after processing a user request, so you need to conduct thread safety checks, so as to improve the execution efficiency of the program, so if it is ISAPI to execute PHP, it is recommended to choose ThreadSafe version;

FastCGI is executed in a single thread, so there is no need for thread safety checks. Removing thread safety checks can improve execution efficiency. Therefore, if FastCGI is used to execute PHP, it is recommended to choose the NonThread Safe version. Through phpinfo(); view the Thread Safety item, this project is to see if it is thread safe, if it is: enabled, generally it should be ts version, otherwise it is nts version.

About PHP VC6, VC9, TS, NTS version of the difference and usage is what to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report