Do yo know any function that...

Do yo know any function that...

am 02.05.2002 10:43:42 von pyabar

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

Re: Do yo know any function that...

am 02.05.2002 16:35:26 von 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"


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Re: Do yo know any function that...

am 02.05.2002 16:52:19 von 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
>
>
>
>



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)