Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder
    Join Date
    Mar 2005
    Location
    Pakistan
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts
    system()
    God helps those who help others.

  • #3
    Regular Coder
    Join Date
    Mar 2005
    Location
    Pakistan
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hope anyone is 4 u
    exec()
    passthru()
    popen()
    escapeshellcmd()
    pcntl_exec()
    God helps those who help others.

  • #4
    New Coder
    Join Date
    Jul 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #5
    New Coder
    Join Date
    Jul 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •