In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "how to solve the problem that thread can not find in php". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the problem that thread can't find in php.
The solution that thread can not find in php: 1, check the VC version of PHP and the VC version of the extension; 2, copy pthreadVC2.dll to the specified folder; 3, download pthread;4 that matches the php version, and modify the php.ini configuration file.
This article operating environment: windows7 system, PHP5.5 version, DELL G3 computer
What if I can't find thread in php?
Specific problem description:
I use php5.5 on the web server. Now, I want to use pthreads. This is my php configuration: after http://dd19010.kasserver.com/infophp.php55 implements this code. ... The problem is this error: fatal error: class' Thread'. not found in Do I have to include some include_once or something like that to make it work? What should I do?
Solution:
First, consider the VC version of PHP and the VC version of the extension. On my system, I attached the VC14 version. Net / downloads/pecl/releases/pthreads/, with the extension pthreads.dll from http://windows.php, but my PHP VC version is VC11. Look for an earlier version that matches the VC version of PHP.
Second, maybe you missed step 3 on the PHP page. It indicates that you need to copy pthreadVC2.dll to another folder. This is a complete explanation.
Use phpinfo () to find out what the PHP Extension Build version is. You can use this-http://localhost/?phpinfo = 1
Download pthread. Php that matches your version of php (32-bit or 64-bit) and the extended version of pthread (currently used VC11). Use this link to download-http://windows.php.net/downloads/pecl/ version / pthreads/
Extract-move php_pthreads.dll to the "bin\ php\ ext\" directory. Move pthreadVC2.dll to the "bin\ php\" directory. Move pthreadVC2.dll to the "bin\ apache\ bin" directory. Move pthreadVC2.dll to the "C:\ windows\ system32" directory.
Open php\ php.ini and add extension = php_pthreads.dll
At this point, I believe you have a deeper understanding of "how to solve the problems that thread can not find in php". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.