php-general Digest 12 Sep 2011 13:05:28 - Issue 7474
Topics (messages 314772 through 314773):
Re: PHP cron job optimization
314772 by: Stuart Dallas
314773 by: Igor Escobar
Administrivia:
To subscribe to the digest, e-mail:
Use PHP threads. Do the job separately.. in parts... in other words... you
can't read all them at once.
You can read a little more about php multithreading here:
http://blog.motane.lu/2009/01/02/multithreading-in-php/
You can use a non-relational database like mongo or couchdb to manage where
Other good point is: always set a timeout connection when you're getting the
RSS data to avoid your thread get stuck unnecessary. Use cURL (is much more
faster then file_get_contents).
Multithreading in PHP with cURL http://devzone.zend.com/article/3341
Regards,
Igor Escobar
*Software Engineer
On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar titiolin...@gmail.com wrote:
Other good point is: always set a timeout connection when you're getting the
RSS data to avoid your thread get stuck unnecessary. Use cURL (is much more
faster then file_get_contents).
Multithreading in PHP with cURL
Hi all, I'm new in the list and I already have a question for you.
I'm running an heavy query on my DB in a PHP script called by AJAX.
Because client often abort AJAX connection to ask a new query, I need to
stop query because DB will be too loaded.
When AJAX connection is aborted, PHP script
@Eric ok ;)
Regards,
Igor Escobar
*Software Engineer
*
+ http://blog.igorescobar.com
+ http://www.igorescobar.com
+ @igorescobar http://www.twitter.com/igorescobar
On Mon, Sep 12, 2011 at 10:52 AM, Eric Butera eric.but...@gmail.com wrote:
On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar
See http://us2.php.net/manual/en/function.connection-aborted.php
On 9/12/2011 10:40 AM, Marco Lanzotti wrote:
Hi all, I'm new in the list and I already have a question for you.
I'm running an heavy query on my DB in a PHP script called by AJAX.
Because client often abort AJAX connection to ask
7 matches
Mail list logo