pcntl problem

Problems with the Linux version of XAMPP, questions, comments, and anything related.

pcntl problem

Postby yugoshi » 24. February 2011 23:10

Hi,

I'm trying to work a little piece of code using pcntl_fork().
Code: Select all
<?php
  $pid = pcntl_fork();
  if ($pid != -1) {
    if ($pid) {
      print "In the parent: child PID is $pid\n";
    } else {
      print "In the child\n";
    }
  } else {
    echo "Fork failed!\n";
  }
?>


Unfortunately, I always get a
Fatal error: Call to undefined function pcntl_fork()
when I try to show my php page.

I checked on my http://localhost/xampp/ -> phpinfo(), '--enable-pcntl' is in the configuration command.
What can I do ?

Btw, I also tried to add the compile files of pcntl (pcntl.so & pcntl.la) into my xampp folder and in my php5 library directory. But I still have the problem.

Cheers !
yugoshi
 
Posts: 2
Joined: 24. February 2011 23:03

Re: pcntl problem

Postby dmerel » 01. June 2011 07:47

Did you ever resolve this? i just came across the same problem
dmerel
 
Posts: 2
Joined: 01. June 2011 07:28


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 8 guests