Home >Backend Development >PHP Problem >How to check whether php is ts or nts
In PHP, you can use the phpinfo() function to check whether php is a ts version or an nts version. This method can display the current phpinfo information. If the information of the "Thread Safety" item is "enabled", generally If it says it, it means the ts version, otherwise it means the nts version.
The operating environment of this article: Windows 10 system, PHP version 7.1, Dell G3 computer.
Use the phpinfo() method to display phpinfo information and display the context information of the current PHP environment.
Examples are as follows:
View the information of the Thread Safety item, which is thread safety.
If it is: enabled, generally speaking it should be the ts version, otherwise it should be the nts version.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to check whether php is ts or nts. For more information, please follow other related articles on the PHP Chinese website!