Re: [PHP-DB] Re: a script that queries database periodically - Mailing list pgsql-sql

From clayton cottingham
Subject Re: [PHP-DB] Re: a script that queries database periodically
Date
Msg-id 3A22FCA0.2F352CAF@marketingchallenge.com
Whole thread Raw
In response to a script that queries database periodically  (Bernie Huang <bernie.huang@ec.gc.ca>)
List pgsql-sql
Roberto Mello wrote:
>
> 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.
>
>         -Roberto
> --
> Computer Science                        Utah State University
> Space Dynamics Laboratory               Web Developer
> USU Free Software & GNU/Linux Club      http://fslc.usu.edu
> My home page - http://www.brasileiro.net/roberto

heya,

IMHO
it depends on why you are querying the db

if you need internet access data
such as how fast its querying or what have you
then yes php could be useful

if you need reports generated and mailed to someone
a crond shell script would seem more logical

pgsql-sql by date:

Previous
From: "Yoghini Thevarajah"
Date:
Subject: FW: Sharing Databases
Next
From: Jason
Date:
Subject: Re: [PHP-DB] Re: a script that queries database periodically