Azu Posted July 11, 2007 Share Posted July 11, 2007 I didn't think this would be hard to find out but I haven't been able to find anything useful on the matter Please tell me how to multi thread in PHP. Like for example so I can have PHP doing something else in the background while waiting for a long mysql query to complete. Quote Link to comment Share on other sites More sharing options...
OLG Posted July 11, 2007 Share Posted July 11, 2007 Parallel Processing is not supported in PHP You can however fork a process using the PHP CLI (assuming you're on a nix box) Here is a tutorial on that: http://www.electrictoolbox.com/article/php/process-forking/ Quote Link to comment Share on other sites More sharing options...
Azu Posted July 11, 2007 Author Share Posted July 11, 2007 Thank you, this is exactly what I was looking for Is there a way to emulate nix programs to run on Windows? Quote Link to comment Share on other sites More sharing options...
OLG Posted July 11, 2007 Share Posted July 11, 2007 Cygwin is a Linux-like environment for Windows. It uses A DLL which acts as a Linux API emulation layer providing substantial Linux API functionality. However, i don't think it will do what your after. Additionally, you might take a look at AceaXe Plus Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.