Jump to content

Calling pages and close connection after x second


FaithRaven

Recommended Posts

Hello

 

I created a crawler that parse huge amounts of XML files and insert/update data in a database. I have uploaded this crawler on multiple servers and I want to call all of them from the main project.

 

In the main project I have something like:

file_get_contents("http://crawler1.net");

file_get_contents("http://crawler2.net");

file_get_contents("http://crawler3.net");

 

It calls crawler1, wait until it finish running, and then call crawler2.

 

What I want to achieve is to call crawler1, and then call crawler2 right away without waiting for crawler1 to finish loading.

 

I do not need anything from what a crawler outputs, they all work independently and insert/update data in the same database. All I need is to call them so they start crawling.

Link to comment
Share on other sites

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.