Start out by trying a simple PHP script on the command line.
开始时先在命令行中尝试一个简单的php脚本。
Using the script, we can get a list of the uptimes for each host supplied on the command line (see Listing 6).
使用该脚本,我们可以获取命令行上提供的每个主机的正常运行时间列表(请参见清单6)。
A loop works on the command line as nicely as it does in a script.
循环在命令行中的工作效果与在脚本中同样出色。
应用推荐