|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Callback in 5 secs
Hi
Here is another one which I cant seem to figure out today. How can I call a PHP function after 5 secs.. The concept is if the script is taking more than 5 secs I need to call a particular function. Is this possible....
__________________
Programmers never die, they just go out of scope Reputation points are nice way to say thank you.
|
|
#2
|
|||
|
|||
|
myabe with sleep( )?
Dekers
__________________
You haven't tried, you haven't lived |
|
#3
|
||||
|
||||
|
Yup I tried sleep but my script stops execution for 5 secs... which is not what I wanted...
|
|
#4
|
|||
|
|||
|
maybe give us some backround about your script... some more info could maybe help
cheers, Dekers |
|
#5
|
||||
|
||||
|
You could always pcntl_fork() it, then in a loop, check the time the forked process has been running.
__________________
PHP Guru -- jQuery Novice -- SQL Master -- RHCE Skudd.com Blogs -- More fun than a barrel full of monkeys! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Callback in 5 secs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|