Hello,
I have a situation that I am not sure how to go about tackling using php only and no client-side scripting if possible.
In a MYSql database a user has a field "login time-slot" eg 9am - 11am.
Now, after the user successfully authenticates a ticking clock should display the time remaining in the time-slot. 1st, I am not sure how to display the ticking clock since PHP is dependent on user invoked requests.
Second, when the time is about to expire e.g. 5 mins. it should notify the user of the time remaining. However it is possible the user may have closed the browser before then.
THirdly, the user during the timeslot may launch a command for e.g. telnet or a DOS command line. When the time fully expires, can the php script automatically close any telnet or DOS command line windows?
Those are my 3 challenges and I would greatly appreciate any help in how to go about starting them. I've been rocking my brain over it for somtime and I am not a php newbie.
THanks a lot