PHP Multithreading

Stalli0n

Junior Member
Joined
Nov 17, 2010
Messages
147
Reaction score
100
Hey, want to make an account creator using CURL, but i don't know how to implement multithreading.

Should i just run the script multiple times?

I need an automated solution, so i can put up to 1k into a queue and php will work them off with multiple threads and automatically start a new one when a thread is finished.
 
Buddy,

just use google:CURL multithreading
There are lot of them.
 
I use the following class for multithreading curl requests
Code:
http://semlabs.co.uk/journal/object-oriented-curl-class-with-multi-threading
Although there was a php curl class that allows non blocking, or something like that, lol. Basically, you set the number of threads, let's say 10 and feed 100 requests. The class takes first 10 request and precesses those and when just one request is done takes the next from queue and adds it for processing. It saves time.
 
Back
Top