| Posted by Bernhard Kraft on 01/20/05 17:44 
puovils wrote:
 > How to realize multitasking in PHP?
 > P.S. http://www.php.net/declare is not multitasking.
 >
 
 To say it simply: There is no multitaskin in PHP4 or PHP5.
 
 I had the same problem when I tried to implement a chat.
 
 So I did it the bad way and used polling ... for the most
 applications this is sufficient..
 
 The only thing you could do to create some kind of multitaskin
 is forking ... for this see the Process Control Functions ...
 
 So you could create multiple instances of the actual process
 and let them communicate via IPC ... but I think this just makes
 sense for scripts executed from the commandline and not via apache.
 
 
 greets,
 Bernhard
  Navigation: [Reply to this message] |