I use PHP extension "PCNTL" write some codes, and run it in terminal, but why appear the Linux host Path
"gdy@localhost:~/myDev/webroot/spider/my$"
Asked
Active
Viewed 51 times
-1

Isabel Inc
- 1,871
- 2
- 21
- 28

Damon
- 103
- 1
- 7
-
3Please upload the picture of the code as actual code. – Isabel Inc Jul 25 '16 at 11:56
-
… which means: upload your code not as a picture, but as text. – Armali Aug 05 '16 at 06:55
1 Answers
0
why appear the Linux host Path
"gdy@localhost:~/myDev/webroot/spider/my$"
This is simply the prompt of your shell, which naturally appears because the parent process in your PHP CODE has run to its end. And this is because you used pcntl_waitpid
's WNOHANG option.

Armali
- 18,255
- 14
- 57
- 171