Jump to content

thread in php


birbal
 Share

Recommended Posts

is there any way to implement thread in php? i came across pcntl but it is telling it is not for windows. how to do it with windows?

Link to comment
Share on other sites

I am trying to developing a websocket server which can listen from browser. if i use any other language rather than php how both will incorporate? how should i approach?

Link to comment
Share on other sites

I'm not really sure what your requirements are, but you definitely wouldn't want to write a web server using PHP. Multithreading is actually disabled in PHP when it is running as an Apache module with a server, it is only available from the command line. I don't know what you're trying to do, but you can have multiple programs use the same database or things like that to exchange information.

Link to comment
Share on other sites

If you must have your socket server running on Windows, the best thing to do is not use PHP, but use a language more appropriate for (portable?) desktop applications... like C# or JAVA.If you insist on using PHP, you'll have to settle with using a UNIX server - there's nothing for Windows yet.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...