-1

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$"

This is my echo in terminal

This is my PHP CODE

Isabel Inc
  • 1,871
  • 2
  • 21
  • 28
Damon
  • 103
  • 1
  • 7

1 Answers1

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