Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-29-2006, 03:55 AM   PM User | #1
tomfmason
New Coder

 
Join Date: Jul 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
tomfmason is an unknown quantity at this point
function like pcntl_fork for win32?

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
tomfmason is offline   Reply With Quote
Old 08-29-2006, 06:21 PM   PM User | #2
amir
Regular Coder

 
Join Date: Mar 2005
Location: Pakistan
Posts: 207
Thanks: 0
Thanked 0 Times in 0 Posts
amir is an unknown quantity at this point
system()
__________________
God helps those who help others.
amir is offline   Reply With Quote
Old 08-29-2006, 06:23 PM   PM User | #3
amir
Regular Coder

 
Join Date: Mar 2005
Location: Pakistan
Posts: 207
Thanks: 0
Thanked 0 Times in 0 Posts
amir is an unknown quantity at this point
hope anyone is 4 u
exec()
passthru()
popen()
escapeshellcmd()
pcntl_exec()
__________________
God helps those who help others.
amir is offline   Reply With Quote
Old 08-30-2006, 12:21 AM   PM User | #4
tomfmason
New Coder

 
Join Date: Jul 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
tomfmason is an unknown quantity at this point
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 is offline   Reply With Quote
Old 08-30-2006, 06:16 PM   PM User | #5
tomfmason
New Coder

 
Join Date: Jul 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
tomfmason is an unknown quantity at this point
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
tomfmason is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:20 PM.


Advertisement
Log in to turn off these ads.