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
How to start a process at a given timestamp in php
Moderator: General Moderators
Re: How to start a process at a given timestamp in php
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?
- 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
the process should start with matching miliseconds
it is a shared server
it is a shared server
Re: How to start a process at a given timestamp in php
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.
Loosen your requirements. If you aren't sure how, try explaining what you're trying to do and why.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: How to start a process at a given timestamp in php
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.
(#10850)