You are here: Re: PHP CLI & Forking children « PHP Programming Language « IT news, forums, messages
Re: PHP CLI & Forking children

Posted by Jerry Stuckle on 09/29/07 19:51

qwertycat@googlemail.com wrote:
> On Sep 29, 8:32 pm, qwerty...@googlemail.com wrote:
>> Instead of writing a PHP script that downloads 2 million headers from
>> a newsgroup in a single connection (which will cause PHP to crash
>> anyway as it'll reach 500MB+ memory usage), I thought it would be
>> better to launch 4 processes do download it in chunks of 50,000
>> headers - with 4 connections to the same NNTP server.
>
> I admit I should be using Perl or C for these tasks, but I know PHP
> and I'm used to using its functions.
>

Nothing wrong with using PHP for this. It will be slower than a
compiled language like C, but most of your time will be spent waiting on
I/O anyway. So it shouldn't be that much slower.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация