vendredi 11 septembre 2015

PHP background sync using http requests

I have a php coded that is suppose to sync data from thousands of http links every 2 minutes and update the database.

However, some of the websites are too slow, and my current approach which is using foreach and going over the links one by one takes around 15 minutes.

Is there a better way to achieve this task in a shorter time?

foreach($email as $emails) {

imap_open(......);

// update db

}

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire