Reply to Re: [PHP] PHP and email

Your name:

Reply:


Posted by Rory Browne on 11/23/05 16:37

On 11/23/05, David Grant <david@grant.org.uk> wrote:
> Hi Angelo,
>
> Why not send them all in one go? If you want to reduce server load, you
> should perhaps adjust the 'nice'ness of the script.

Because niceness would only affect the script itself and not any smtp
servers it comes across along the way.

renicing would make the script nice to the local computer, but sending
8000 in one go, will overload the remote smtp servers which do not
know the local nice value.

>
> If you do the following:
>
> nice --adjustment=19 ./script.php
>
> Your script will run in the background and use only spare resources.
but that will only affect the local machine.

You could adjust the bandwidth using trickle, but to answer the mans
question - it doesn't really matter. Personally I'd perfer the former,
but you have to make sure that your script doesn't time out by setting
some php.ini value(forget the name of it.)

[Back to original 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

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