Jump to content

URL retrieval slow when script is called from system()


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.