I can find these few functions, the implementation of the Linux command, I think there should be, welcome to add.
Under normal circumstances, very few will use php to execute linux commands, but under special circumstances, you may use these functions. I used to know that there are two functions that can execute linux commands, one for exec and one for shell_exec. In fact, there are many, combined with the manual content, introduce the following six functions.
1, exec function
<? php $ test = "ls / tmp / test"; // ls is under linux directory, file command exec ($ test, $ array); // Execute the command print_r ($ array);?>
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.