forked from LionsAd/rolling-curl
-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Hello,
I use this script since the 1.0 version for recursivity (especially with the "callback" function in adding new URL on the fly) while this version seems not to do it (I'm probably wrong and don't know how to use it as it is), so here my suggestion (what I have done).
In "rolling-curl/src/RollingCurl/RollingCurl.php", just move the "callback" (lines 275 to 279, "remove the curl handle that just completed") before line 262 ("// start a new request (it's important to do this before removing the old one").
With this, you can add new URL on the fly in the "callback" function (you have to pass "RollingCurl" object in it).
Maybe it can be changed on these source?
Ty for this very useful script.
Metadata
Metadata
Assignees
Labels
No labels