Forge ahead, and you'll see some of the possibilities of using PHP for simple — or not-so-simple — shell scripting.
向前迈进,并且您将会看到将php用于简单或者不那么简单的shell脚本的一些可能性。
The first example, written in PHP, will capture the output of the shell command "df -h," place the output into an array, and then examine each line of output against a regular expression.
采用PHP编写的第一个示例将捕获Shell命令“df—h”的输出,将输出放在一个数组中,然后根据一个正则表达式检查输出的每一行。
With Python, the subprocess module handles making the system call to the shell command, and puts it into a list, called in array in Bash or PHP.
对于Python,子过程模块处理对Shell命令的系统调用,并将输出发在一个列表(在Bash和PHP中称为数组)中。
I'm not going to break down the workings of that script quite yet, but most of it will be familiar to those who work with shell scripting and PHP.
我不会详细说明该脚本的工作原理,但是使用过shell脚本和PHP的人应当十分熟悉脚本的大部分内容。
The PHP CLI SAPI allows you to develop shell- and even desktop-based scripts powered with PHP.
PHPCLISAPI允许您开发 PHP 支持的shell脚本,甚至是基于桌面的脚本。
Give PHP a chance on the command-line interface, and you may find that it has become your new favorite shell-scripting tool.
请给PHP一个机会,在命令行接口中使用它,您就会发现它已经成为您的shell脚本工具新宠。
This article considers the tools built into PHP that allow you to tap into the underlying shell environment and file system PHP is running on.
本文探究构建到php中的工具,让您了解PHP运行的底层shell环境和文件系统。
This article considers the tools built into PHP that allow you to tap into the underlying shell environment and file system PHP is running on.
本文探究构建到php中的工具,让您了解PHP运行的底层shell环境和文件系统。
应用推荐