RE: [PHP-DB] Re: [GENERAL] Re: [PHP-DB] Re: [SQL] a script that queries database periodically

From: Date: Mon, 04 Dec 2000 14:02:44 +0000
Subject: RE: [PHP-DB] Re: [GENERAL] Re: [PHP-DB] Re: [SQL] a script that queries database periodically
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-general+get-28574@lists.php.net to get a copy of this message
Have to agree with Dan... You could easily build any backup/checking routine into a site that would check/perfoem any functions that need to be without the need for server side interaction. ie: if(time of day is now) doThisFunction(); I use this to backup data, remove expired users, etc... Alternatively, I also use cron to run a PHP file which accomplishes backup, process management, and other administration tasks... primarily because it is easier to concentrate on one language, and spitting out errors in html format is easier IMO. I do think that cron and other scheduled process are part of the development process... just shouldn't be part of PHP (or apache for that matter). Cron does that job just fine on its own and with very little overhead. Dave -----Original Message----- From: Dan Wilson [mailto:phpPgAdmin@acucore.com] Sent: Monday, December 04, 2000 2:57 AM To: Roberto Mello; Jason Cc: Poul L. Christiansen; Bernie Huang; PHP_DB; PHP_General; PGSQL-SQL; PGSQL-GENERAL Subject: [PHP-DB] Re: [GENERAL] Re: [PHP-DB] Re: [SQL] a script that queries database periodically > Jason wrote: > > > > aolserver is a web/application server. PHP is a server-side scripting > > language. Why exactly *should* it have a job scheduler? > > > > Some (such as myself) might also ask why should a web server have a job > > scheduler, but that's a thread for a different list :) > > Because PHP is supposed to solve web development problems. And this is > one of them. It's very useful. I disagree! Cronjobs are not a web development problem. That is something that should be handled on the server/machine side. PHP is purely designed to dynamically create web pages. It has other things built into it, but each one interfaces with the web page somehow. A cronjob doesn't use the web at all. The web is an interactive thing and the whole purpose of a job scheduler is to avoid interaction. Sure a job scheduler is useful, but it is outside the scope and mission of PHP. -Dan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#28574) next »