You are here: Re: [PHP] PHP and email « PHP « IT news, forums, messages
Re: [PHP] PHP and email

Posted by David Grant on 11/23/05 14:29

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.

If you do the following:

nice --adjustment=19 ./script.php

Your script will run in the background and use only spare resources.

Cheers,

David Grant

Angelo Zanetti wrote:
> Hi
>
> I have a dedicated server in the states.
>
> I need to send about 8000 emails (once off). There pretty small +- 5KB.
>
>
> so I want to write a php script and run it from the command line in the
> background. I was thinking of sending 50 emails then waiting 90 seconds
> then sending again.
>
> Or
>
> the same script gets run by cron every 90 seconds and just sends 50 emails.
>
> What do you recommend?
>
> thanks
>
> clive

 

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

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