Yeah... kinda looks like it. Too unreliable.
Anyway... I reduced that loop from 50 to 15 links but the "too many open files" error still comes up way too often, together with this one: "The client-side distribution policy was unable to find an available RoboServer".
I guess it's back to PHP DOM scraping for me. At least for the time being.
PS: And to think I actually even installed XP on my mac for this. :(