接线图假设采用错误通道设置。
The wiring diagram assumes that you use the default channel settings.
您可以将php中的相同通道分别用于输入、标准输出和输出到错误通道。
You can use the same channels in PHP for input, standard output, and output to the error channel, respectively.
您无法从输出中看到的一个细节是,perror() 将其消息写入标准错误通道 (stderr); 清单 1 中的 printf() 调用将写入标准输出通道 (stdout)。
One detail you can't see from the output is that perror() writes its message to the standard error channel (stderr); the printf() call in Listing 1 is writing to the standard output channel (stdout).
应用推荐