Обсуждение: Do yo know any function that...

Поиск
Список
Период
Сортировка

Do yo know any function that...

От
Patricia Yábar
Дата:
Hello everybody, I have to programe  a kind of schedule that alert
finish  activities that i saved in a posgres database. Do you know if
there is any php function that alert to the clients automatically every
? time or something that help me to  present the schedule information
without the client have to do any action.
Thanks.
Patricia.


Re: Do yo know any function that...

От
Keary Suska
Дата:
on 5/2/02 2:43 AM, pyabar@unica.edu purportedly said:

> Hello everybody, I have to programe  a kind of schedule that alert
> finish  activities that i saved in a posgres database. Do you know if
> there is any php function that alert to the clients automatically every
> ? time or something that help me to  present the schedule information
> without the client have to do any action.
> Thanks.
> Patricia.

I am not entirely clear what you are trying to do, but in general using a
web browser, there is no way to have a persistent, bi-directional
communication to an HTTP server. At least not one that you can control.

There are ways to accomplish this kind of thing using JavaScript and
iframes. So as as far as PHP and Postgres is concerned, the answer to your
question is, "No, but it can be done."

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"


Re: Do yo know any function that...

От
Surojit Niyogi
Дата:
Patricia,

What you're looking for are "cron jobs".  These are tasks that are
scheduled to run periodically according to the criteria you specify.
 They are tied to the operating system (I'm assuming that you are
running Linux).  In order to run php functions with cron job you
typically have the cron job execute a console function that executes a
php script using the following format:

/usr/bin/php -q [phpscriptname.php]

Of course you need the standalone php executable in order for this to
work.  Post if you have more questions.

Roj Niyogi
Founder
pgHoster - PostgreSQL web hosting
http://www.pghoster.com

Patricia Yábar wrote:

>Hello everybody, I have to programe  a kind of schedule that alert
>finish  activities that i saved in a posgres database. Do you know if
>there is any php function that alert to the clients automatically every
>? time or something that help me to  present the schedule information
>without the client have to do any action.
>Thanks.
>Patricia.
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/users-lounge/docs/faq.html
>
>
>
>