Jump to content

URL retrieval slow when script is called from system()


roschler

Recommended Posts

I have a PHP script that retrieves URLs in parallel.  An array of tracking objects is built with each object using fopen() to open one URL.  Then I use a loop where fread() is called for each object's file handle until all documents are fully read.  When I execute the script directly it's quite fast.  But if I have another script execute this very same script using the system() command, with the exact same URLs,  it's much, much slower. 

 

Is there something that affects URL retrievals with scripts spawned from the system() command that I don't know about?

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.