gpt4 book ai didi

php - 为什么代码 "Linux host path"的进程中会出现 "echo"?用法 PHP 扩展 "PCNTL"

转载 作者:太空宇宙 更新时间:2023-11-04 05:22:51 25 4
gpt4 key购买 nike

我使用PHP扩展“PCNTL”编写了一些代码,并在终端中运行它,但为什么出现Linux主机路径“gdy@localhost:~/myDev/webroot/spider/my$”

This is my echo in terminal

This is my PHP CODE

最佳答案

why appear the Linux host Path "gdy@localhost:~/myDev/webroot/spider/my$"

这只是你的 shell 的提示符,它自然会出现,因为你的 PHP 代码中的父进程已经运行到结束。这是因为您使用了 pcntl_waitpidWNOHANG 选项。

关于php - 为什么代码 "Linux host path"的进程中会出现 "echo"?用法 PHP 扩展 "PCNTL",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38567079/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com