alin19 Posted October 24, 2008 Share Posted October 24, 2008 i know that java can run two tasks in the same time, i don't know if i explain well, i mean like mysql can handle more than one query at a time, i have 2 function in php-cli that must run continuously, one reads and one write. wright now those are executed one at the time, if there isn't anything to read then it tryes to write. but it would be beter if both are runing in the same time can php-cli handle multi tasking? and if yes, how? Link to comment https://forums.phpfreaks.com/topic/129924-solved-php-multiwire/ Share on other sites More sharing options...
ratcateme Posted October 24, 2008 Share Posted October 24, 2008 have a look at this http://nz2.php.net/manual/en/function.pcntl-fork.php i have used that before but i don't know if the two process can talk to each other. Scott. Link to comment https://forums.phpfreaks.com/topic/129924-solved-php-multiwire/#findComment-673543 Share on other sites More sharing options...
alin19 Posted October 24, 2008 Author Share Posted October 24, 2008 at first look seams that is what i need, 10x scott Link to comment https://forums.phpfreaks.com/topic/129924-solved-php-multiwire/#findComment-673546 Share on other sites More sharing options...
alin19 Posted October 24, 2008 Author Share Posted October 24, 2008 Fatal error: Call to undefined function pcntl_fork() in C:\Documents and Setting s\Administrator\Desktop\two.php on line 3 any ideea how i solv this error? i've looked in php.ini and i didn't find any extenion that refers to this Link to comment https://forums.phpfreaks.com/topic/129924-solved-php-multiwire/#findComment-673554 Share on other sites More sharing options...
ratcateme Posted October 24, 2008 Share Posted October 24, 2008 it is not available for windows. see this link http://nz2.php.net/manual/en/pcntl.installation.php i used it on linux. Scott. Link to comment https://forums.phpfreaks.com/topic/129924-solved-php-multiwire/#findComment-673556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.