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. Link to comment https://forums.phpfreaks.com/topic/59412-multi-threading/ 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/ Link to comment https://forums.phpfreaks.com/topic/59412-multi-threading/#findComment-295218 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? Link to comment https://forums.phpfreaks.com/topic/59412-multi-threading/#findComment-295236 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 Link to comment https://forums.phpfreaks.com/topic/59412-multi-threading/#findComment-295242 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.