You are here: Re: Using PHP for nightly backend tasks? « PHP Programming Language « IT news, forums, messages
Re: Using PHP for nightly backend tasks?

Posted by Gordon Burditt on 07/17/07 23:09

>I have to develop a script to be run nightly to go through a database
>and send emails based on conditions. It's a large database, and there
>are several thousands of emails to be sent during the week everyday.
>The script will be run with a cron job at midnight or so.
>
>I was wondering if PHP is suitable for this, or may it be problematic,
>for instance would its execution abort after a certain amount of time?
>Or is it perfectly fine for this task?

You may want command-line PHP for this task. The interface is a
little different (e.g. no $_GET and $_POST) but you can set different
parameters and I believe the run time limit defaults to infinite.
Anyway, the parameters can be put in a different .ini file and set
differently than for web-based PHP.

 

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

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