LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-05-2008, 12:36 AM   #1
ratcateme
Member
 
Registered: Feb 2008
Distribution: CentOS 5.4
Posts: 59

Rep: Reputation: 15
PHP behaving strangely with PCNTL functions


I have done alot of coding in php and i am trying to learn how to effectively use the PCNTL functions. i have this code
PHP Code:
<?php
$pid 
pcntl_fork();
print 
"start\n";
if (
$pid) {
    
// parent process runs what is here
    
pcntl_waitpid($pid$statusWUNTRACED);
    print 
"parent\n";

} else {
    
// child process runs what is here
    
print "child\n";
}
?>
i can run it from from terminal using "php pcntl.php" and it runs fine
when i go to http://localhost/pcntl.php it says
Code:
Fatal error: Call to undefined function pcntl_fork() in /var/www/html/asd.php on line 2
is it possible to get these functions to work or is Apache disabling them?

Scott.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Broadcom w/l behaving strangely lately. algogeek Linux - Hardware 1 06-15-2008 11:36 PM
Grub behaving strangely live_dont_exist Linux - General 2 08-06-2006 02:04 PM
Microsoft wireless mouse behaving strangely in X meshach Slackware 18 01-17-2006 01:22 AM
Second X Server behaving (at least to me) strangely exitsfunnel Linux - Software 2 05-13-2005 05:52 PM
ATI Drivers (or something) behaving strangely... doxxan Linux - Hardware 3 02-19-2004 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration