Basic Question about Threading and PHP...


Posted on 16th Feb 2014 07:03 pm by admin

I have a page that I am working on and it is taking several hours to process. The basics of what the page does is get all the items out of a database then with cURL download some HTML parse through it and if anything has changes update values back in the database. 90% of the time is spent waiting on libcurl to download the page and the page is VERY low on CPU usage. In the effort of trying to speed things up I thought about trying to thread the download process, but from a quick google search it appears that PHP lacks Threading support. Does anyone know of anything that could be done to speed things up? Maybe something I missed with cURL that would make it download faster or an alternative to Threading?

Did you know?Explore Trending and Topic pages for more stories like this.
Thanks
No comments posted yet

Your Answer:

Login to answer
125 Like 42 Dislike
Previous forums Next forums
Other forums

PHP - MySQL Fail
My PHP code will only execute the first part of my code...

Code: <?php

sessio

Auto install
Hi I have a directory lets say "apps" that I then have more folders ie "email",

Random date selection
i want to select random date with time(hour+minutes+sec) where date is specified(10/22/2009) and tim

start new row of pictures
on my site www.budstreasureauctions.com there is a featured auctions box that users will pay to get

Sorting JTable on more than just the values listed in the columns
I have a collection of objects that store (among other things) two integer values. I only want to di

Estimations and Effort
HI Gurus,

Would like to know whether SAP have a provision for carrying out the Project es

Not capturing all the information we require in the form.......
Hi Guys,

I was wondering if you would share some more of your knowledge today, I'm hoping it

Strip Slashes Help
I've got a script that i've downloaded of the net to edit multiple fields from my sql database, and

Members Only
Hi all, for my website i have a members area only which on members can veiw, but at the moment anyon

Creating a custom API
I'm creating a site, and I need to create a basic API. Unfortunately I have no idea where to start.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash