to execute the php file, it will Found that there is an additional test folder under the d drive. Reference documentation: exec function analysis exec syntax: string exec(string command, string [array], int [return_var]); exec return value: string Exec parameter description Command – the command to be executed Array – is the output value return_var – is the return value 0 or 1. If 0 is returned, the execution is successful, if 1 is returned, the execution fails. exec failed, debugging solution Tips sharing: Use the pipe command, use 2>&1, the command will output the error during shell execution to the $output variable, and output the variable for analysis. For example: exec(‘convert a.jpg b.jpg’, $output, $return_val); change into:
|