Category: PHP   1 articles

PHP PK Shell
August 19, 2017 at 12:37

Recently there was an important file management project required Shell + PHP, which were completely different platforms, but could be called from each other to achieve the required functions. The syntax of PHP is succinct and easy to read. When you need to judge whether a process exists in the system, you must use the shell command to program. PHP does not have such this permission.

Both of them have their own advantages and disadvantages. Shell is a built-in command of the Linux operating system. It has higher permissions and can directly implement many system-level functions, but the debugging is cumbersome and the syntax is not easy to read. I preferred to give more functions to PHP to implement.

Permalink | Comments (0) | Trackback (0)

Copyright © 2017-2018 emxel.com All rights reserved. Powered by Arsue