set timer in admin site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

set timer in admin site

Post by valen53 »

i have a timer in admin site, when i press start, the timer will start increased by second.

But how to let other users to see this timer? The timer in client site must be same with admin site.

anybody can help me ? thank a lots
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

it would have to be server-side

the name client-side implies that is controlled/affected/view only by teh client
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

Post by valen53 »

Thanks reply.

admin site at my system means server site also. So only the server site can control the timer. The client site only can view the timer.

But how to let client site timer same with server site timer ? B'cos the timer was always increased by second
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

i have no idea as i have never personally found the use for such a thing

however if there is only a one second difference between what the server is, and what the client is, unless your working for the atomic timing agency it wont matter
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

I'm sure it can be done wit Flash...or java.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Perhaps if the [Start] triggers a function that will update a database/file once/sec, in conjunction with a 3rd part software (read: cron-job?) or similiar.

Flash or Javabean/applets is also something I firts thought of. Don't think you will be able to do this in pure PHP. Try the guru's in the "Client Side" part of the forum...
Post Reply