How to start a process at a given timestamp in php

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
Ankush
Forum Newbie
Posts: 10
Joined: Thu Sep 05, 2013 12:22 am

How to start a process at a given timestamp in php

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How to start a process at a given timestamp in php

Post 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?
Ankush
Forum Newbie
Posts: 10
Joined: Thu Sep 05, 2013 12:22 am

Re: How to start a process at a given timestamp in php

Post by Ankush »

the process should start with matching miliseconds
it is a shared server
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How to start a process at a given timestamp in php

Post 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.
User avatar
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

Post 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.
(#10850)
Post Reply