[SOLVED] Threads in php (CPU/Java like threads)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aion
Forum Newbie
Posts: 2
Joined: Tue Nov 16, 2004 7:09 am

Threads in php (CPU/Java like threads)

Post 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
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post 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.
aion
Forum Newbie
Posts: 2
Joined: Tue Nov 16, 2004 7:09 am

Post by aion »

tnx i'll check out that site!
Post Reply