Re: PHP time monitor
From: Aaron Harvey (spam_at_mehere.com)
Date: 10/27/03
- Next message: EricRobineau: "Help: Dreamweaver Database Conncetion Problem (PHP/MySQL)"
- Previous message: Mark Renton: "Re: Form security for database"
- In reply to: Nikolai Chuvakhin: "Re: PHP time monitor"
- Next in thread: rush: "Re: PHP time monitor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Oct 2003 11:27:20 -0500
After reading your reply and the other one I think I'm going to go ahead
and change some of code around such that I am going to be able to use
logging. Although I would actually prefer using automatic updating
regardless of whether or not the user has opened the page, but I'm not
sure I have access to the admin, or even if I did if he would modifiy OS
level goodies for me.
Anyway, what I've decided to do is split up all the pages so that each
user has his own "personal" page to look at with the user database
containing all the tailored information. The only hangup I'm still
seeing is if I want to say add an 1 option every 12 hours, but I think
that could be solved with logging, but I haven't attempted it yet so I'm
not really sure what it entails.
After a user signs up he has 5 options, then every 12 hours I want to
present the user with another option that modifies certain settings in
the database. I had originally envisioned the idea that a script would
monitor to the time (ala a constantly running C++ program) and when a
certain time was reached the script would execute. But seeing as I'm
still learning the intricies of PHP I wasn't sure it was even possible.
I had also considered writing a C++ program that runs on my home
computer and when the system clock reaches 12:01PM and 12:01AM it
executes the script on the page or it modifies the database directly.
I hope through all my rambling you were able to pull a clearer idea of
what I am attempting ;)
-Aaron
Nikolai Chuvakhin wrote:
> Aaron Harvey <spam@mehere.com> wrote
> in message news:<msidnXIY4LhTEgGiRVn-vg@comcast.com>...
>
>>is there a way to have the code actively poll or monitor
>>the system time so that after a certain time has been reached
>>it will updated the webpage.
>
>
> Scheduling is better done with OS-level scheduling facilities such
> as cron (on Unix) or Scheduler (on Windows).
>
>
>>Such as, if I want to present x amount of options at 12:01PM and
>>12:01AM to the user,
>
>
> But what happens if there is no user requesting your script at 12:01PM
> and 12:01AM? Or would you rather offer those options to the user when
> they log on for the first time since the cutoff time? If so, you are
> not requiring scheduling, but rather, some kind of logging (the system
> keeps a record of user's actions and periodically prompts the user for
> more actions).
>
> Please elaborate. So far it is not clear to me what you want. Both
> scheduled automatic execution and logging are possible. The question
> is, which are you trying to implement?
>
> Cheers,
> NC
- Next message: EricRobineau: "Help: Dreamweaver Database Conncetion Problem (PHP/MySQL)"
- Previous message: Mark Renton: "Re: Form security for database"
- In reply to: Nikolai Chuvakhin: "Re: PHP time monitor"
- Next in thread: rush: "Re: PHP time monitor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|