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 -------------------- is an external program executed? Similar to other languages! ------ Solution -- exec returns 127
Exec ($ command, & $ output, & $ result );
Echo $ result; die ();
Result returns 127
Command not found
What is this concept and how to solve it?
------ Solution --------------------
Is it an external program? Similar to other languages!
------ Solution --------------------
What is the backdoor program?
------ Solution --------------------
The third parameter of the exec function is the command execution status. if 127 is returned, it indicates that the path for executing the command is incorrect or you do not have the permission.
The following is an explanation of the 127 error document.
"Remember to use the full path (IE '/usr/local/bin/foo' instead of 'Foo') when using passthru, otherwise you'll get an exit code of 127 (command not found ).
Remember, you'll also get this error if your file does not have executable permission ."
"If you have chrooted apache and php, you will also want to put/bin/sh into the chrooted environment. otherwise, the exec () or passthru () will not function properly, and will produce error code 127, file not found."