PHP cannot execute the system () function, and there may be several possibilities later.
First, please turn on the error number, based on the error to determine the reason: open php.ini in display_errors = On
Modify PHP.ini in ISAPI mode to restart the Web service.
Error Analysis:
1.Warning: System () have been disabled for security reasons
This error occurs because the server security configuration shuts down the system function, and the edit php.ini lookup disable_functions removes the system after the equals sign.
2.Warning: System () [Function.system]: Unable to fork
This error is due to the current site's running account cannot access Cmd.exe, find the Windows\system32\cmd.exe property, security, add the current site running account permissions, or the Users group permissions.
3, under the Web Access to perform no response or error, using the PHP CLI command line execution but can return the results normally
This error is generally caused by Windows system paths, and your program probably uses an absolute path to access the program such as:
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 command line executes the result OK, but Web Access is blank and error free.
Fix the method to change the file access path to relative:
Copy the IECapt.exe to the current directory of your site program and change the code to:
System (' IECapt.exe--url=http://www.baidu.com--out=t/tech.png ');
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.