Page 1 of 1
How to start a process at a given timestamp in php
Posted: Wed Sep 11, 2013 3:45 am
by Ankush
Hello all
I am doing an application which takes the in time and out time from user.
Now the requirement is that i want to start a process when the in time matches the current time and end that process when out time matches the system time.
Can any one suggest me some of doing this.??
Thanks very much in advance
Re: How to start a process at a given timestamp in php
Posted: Wed Sep 11, 2013 1:19 pm
by requinix
That's actually harder than it sounds.
- Exactly how close to the start time does the thing have to start?
- How granular is the start time? To the second? Minute?
- How much control do you have over the system executing this code? Like is it a shared or dedicated server?
Re: How to start a process at a given timestamp in php
Posted: Thu Sep 12, 2013 12:19 am
by Ankush
the process should start with matching miliseconds
it is a shared server
Re: How to start a process at a given timestamp in php
Posted: Thu Sep 12, 2013 3:02 am
by requinix
That's not going to happen.
Loosen your requirements. If you aren't sure how, try explaining what you're trying to do and why.
Re: How to start a process at a given timestamp in php
Posted: Thu Sep 12, 2013 1:23 pm
by Christopher
What do you mean by process? Are you starting a program on the command line or talking to a daemon? Or using the process control library in PHP? If you are starting a program on the command line or talking to a daemon, then it is possible for that program to manage when it stops (and possibly starts) to the millisecond.