The server CentOS, because it needs to call PHANTOMJS, has installed the PHANTOMJS binaries, and, on Putty, tried PHANTOMJS--version to output normally: 1.9.8.
Then try the following:
exec("phantomjs --version", $o, $e);echo $e;//返回127
Very puzzled,
The centos server has installed the phantomjs binary file because it needs to call phantomjs. In addition, it has tried to output phantomjs -- version on putty: 1.9.8. then I tried: {code ...} wondering, try again: {code ...} google for a long time,
Exec returns the 127 exec ($ command, & amp; $ output, & amp; $ result); echo $ result; die (); result returns the 127 & nbsp; what is the concept of "& nbsp;" not found in the command? how can this problem be solved? ------ Solution ----------------
Exec returns the 127 exec ($ command, & amp; $ output, & amp; $ result); echo $ result; die (); result returns the 127 & nbsp; what is the concept of "& nbsp;" not found in the command? how can this problem be solved ?, Is it an external program?
When calling functions such as system and exec, either no response or an error occurs:
There are many reasons for this:
========================================================== ========================================================== ====
Error
Directory:First, the introduction of calling external commands in PHPIi. on security issuesThird, about the time-out problemIv. problems with commands in PHP running Linux environmentFirst, the introduction of calling external commands in PHPThere
The execution result of PHPsystem (ls-l, $ ret_var) is 127. dear friends, the younger brother recently installed a lighttpd on the ARm board and configured PHP5.4, however, when I write a php file to call a local executable file, the returned value
Server: ubuntu14.04PHP: 5.4 apache: invalid varwwwwwwrootUploaddoc & #39; tes execphp word to redirect phpexec permission
Server: ubuntu14.04PHP 5.4Apache: 2.0I follow the methods found on the Internet to jdk1.7.0 _ 79, jodconverter-2.2.2 have
execphp word go pdfphpexec permissions
Server: ubuntu14.04php:5.4apache:2.0I followed the online search method to install the jdk1.7.0_79,jodconverter-2.2.2, and then use root login to the server, directly enter the command
To call external commands in PHP, you can use, 1 & gt; to call specialized functions, 2 & gt; reverse quotation marks, 3 & gt; popen () to open the process, three methods to implement directories: 1. Introduction to calling external commands in
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.