Page 1 of 1

Threads in php (CPU/Java like threads)

Posted: Tue Nov 16, 2004 7:13 am
by aion
I can't seem to find if it is possible to created threads in php. When i say threads i mean like the CPU/Java threads

For instance multiple objects running at the same time controlling different ftp connections.

I'm trying to create a program which needs to upload to multiple ftp servers at the same time so to refresh the contents on the server at the same time. So that the program running there is in sync with the rest of the instances

Posted: Tue Nov 16, 2004 8:19 am
by BDKR
Unfortunately, PHP is not capable of running multiple threads. You may want to check Python.

However, there is a package that can be found at phpclasses.org that simulates threads using forked procs and process intercommunication. This may be of some help or use.

Posted: Tue Nov 16, 2004 8:35 am
by aion
tnx i'll check out that site!