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?

Thanks

No comments posted yet

Your Answer:

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

Having problemswith multithreading and prime numbers
I have an assignment when I'm suppose to do the following:

Write a multithreaded Java, Pt

Using mysql_real_escape_string for displayed content
On my website users can input data into a textarea and it will store it in the mysql database. But,

onClick='location.href=index.htm'> not working
Below is my code:

echo "<input type='button' value='redirect' onClick='location.h

convert pps to wsf with php'how?
hi
i want to convert with php
PowerPoint file to swf file(flash)
how please?
thank!!!

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

parse error
On my local machine I keep getting parse error for my footer. When I put it online, it doesn't show

Help With editting and deleting form
Hallo !!

So look at this image :

http://img194.imageshack.us/img194/8272/snapshot5f.pn

download directory onto C drive
I am attempting (if this is possible) to write a routine to automatically dump the contents of a dir

Keep newlines from textarea?..
I'm creating a simple encoding program, and what I want it to do is retain the newlines, as echoing

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