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.

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.