search
Homephp教程php手册PHP based on ts and nts versions - detailed explanation of the difference between vc6 and vc9 compiled versions_php basics

In PHP based on ts and nts versions - detailed explanation of the difference between vc6 and vc9 compiled versions_php basics:

VC6: legacy Visual Studio 6 compiler, this compiler is used compiled.
VC9: Visual Studio 2008 compiler is compiled using Microsoft's VS editor.
Since apache.org only provides the VC6 version, you can only use VC6 when using the original apache. (There is a version of apache VC9 available on www.apachelounge.com. It should be able to cooperate with PHP VC9. I have never used it.)
TS: Thread Safe thread safety, thread (Thread) safety check will be performed during execution to prevent The new requirement is to start a new thread of CGI execution and exhaust system resources
NTS: Non Thread Safe, non-thread safety, no thread (Thread) safety check is performed during execution
Two types of PHP Execution method: ISAPI and FastCGI.
ISAPI (Internet Server Application Programming Interface) execution method is used in the form of a DLL dynamic library. It can be executed after being requested by the user. It will not disappear immediately after processing a user request, so it needs to be Thread safety check can improve the execution efficiency of the program, so if ISAPI is used to execute PHP, it is recommended to choose the Thread Safe version
Configuration method in apache:

#The following is to load the TS version PHP required
LoadModule php5_module “xxx/php5apache2_2.dll”
#The following line is optional

AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt


FastCGI execution method uses a single thread to perform operations, so there is no need for threading For security checks, removing the protection of thread safety checks can actually improve execution efficiency. Therefore, if FastCGI is used to execute PHP, it is recommended to choose the Non Thread Safe version.
Configuration method in apache:

#The following two lines are necessary to load the NTS version of php. They cannot be written directly as Action application/x-httpd-php "c:/wamp/bin /php/php3.5.6/php-cgi.exe"!
ScriptAlias ​​/php/ "C:/wamp/bin/php/php3.5.6/"
Action application/x-httpd-php "/php/php-cgi.exe"

#In addition, you must have the previous AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt, so that you can recognize files in php format

#This configuration is possible Also, due to permission issues, php-cgi.exe cannot be used to parse php web pages, so the following paragraph must be added


The official does not recommend that you apply Non Thread Safe to the production environment. So we choose the Thread Safe version of PHP to use.
The default configuration of XAMPP in http-xampp.conf is to use ISAPI

The above is a detailed explanation of the difference between the ts and nts versions in PHP - vc6 and vc9 compiled versions_php Basic content, please pay attention to the PHP Chinese website (www.php.cn) for more related content!


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!