...

View Full Version : function like pcntl_fork for win32?



tomfmason
08-29-2006, 03:55 AM
I am attempting to fork a socket script in a windows enviroment and am running into a serious problem. As you may know pcntl is not available in windows. I have thought about using ticks but that would not realy fork the script. I also thought about using an exec function but that will only run the script in the background.

So at this point I am lost. Any suggestions?

Thanks,
Tom

amir
08-29-2006, 06:21 PM
system()

amir
08-29-2006, 06:23 PM
hope anyone is 4 u
exec()
passthru()
popen()
escapeshellcmd()
pcntl_exec()

tomfmason
08-30-2006, 12:21 AM
That would not be forking right. That would just run a script in the background.

All I am wanting to do is take some of the stress off of my server by forking my socket server. I have thought about complie ing it but I have no experence with that. I guess since I cannot find an answer to my question then I will start testing that.


Thanks for the try,
Tom

tomfmason
08-30-2006, 06:16 PM
After long hard search I found that this is not possible with php in a Win32 enviroment. So I am going to write the socket server in C#

Thanks,
Tom



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum