In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail what to do if you do not implement php system. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
This article operating environment: windows7 system, PHP7.1 version, Dell G3 computer.
What if the php system is not executed? How to solve the problem that PHP cannot execute the system () function?
Problem exposition
What is the reason why PHP cannot execute the system () function?
Solution
PHP cannot execute the system () function, and there may be the following situations:
(1) Warning: system () has been disabled for security reasons
This error is due to the fact that the server security configuration closes the system function, opens the php.ini file, and removes the system after the disable_functions equal sign.
(2) Warning: system () [function.system]: Unable to fork
This error is due to the fact that the running account of the current site cannot access cmd.exe. Find the Windows\ system32\ cmd.exe attribute and add the running account permission or users group permission of the current site.
(3) execute under Web access without any response or error, but use php cli command line to return results normally. This error is usually caused by the Windows system path, and the absolute path may be used in the program to access the program, for example:
System ('D:\ server\ DLL\ IECapt.exe-- url= http://tech.cncms.com-- out= "D:\ web\ tt.fei.cn\ htdocs\ ttt\ tech.png"')
At this point, the result of execution on the command line is correct, but accessing it with Web returns a blank page with no errors.
Modify method: change the access path of the file to the relative path, copy the IECapt.exe to the current directory of the site program, and change the code to:
System ('IECapt.exe-- url= http://www.baidu.com-- out=t/tech.png')
Visit the page again and you can output normally.
About what php system should do to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.