Click here to Skip to main content
15,913,722 members

Comments by Kepiting Bula (Top 10 by date)

Kepiting Bula 5-Jun-19 5:16am View    
don't forget and be a learn together
Kepiting Bula 5-Jun-19 5:14am View    
my use case
$pid = pcntl_fork();

  if ($pid == -1) {
die("ERROR");
  }
  else if ($pid == 0) {
        head($argv[2]);
     exit(0);
  }
  else {
$pids[] = $pid;
      }
    }

foreach ($pids as $pid) {
  pcntl_waitpid($pid, $status);
}

}


I trying to changes:
else if ($pid == 0) {
        head($argv[2]);

if ($pid == 0)
head($argv[1]);
     exit(0);
Kepiting Bula 5-Jun-19 5:05am View    
any suggest,
Kepiting Bula 5-Jun-19 5:01am View    
I see, U say this isn't work with windows os and running process is one or same process but the list of code is not same
Kepiting Bula 5-Jun-19 4:55am View    
This solutions are running windows executable files inside php files, any suggestion