PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 22nd, 2005, 08:05 AM
ashkam's Avatar
ashkam ashkam is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 265 ashkam User rank is Corporal (100 - 500 Reputation Level)ashkam User rank is Corporal (100 - 500 Reputation Level)ashkam User rank is Corporal (100 - 500 Reputation Level)ashkam User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 8 h 35 m 17 sec
Reputation Power: 6
Send a message via AIM to ashkam Send a message via Yahoo to ashkam
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.

Reply With Quote
  #2  
Old September 22nd, 2005, 08:34 AM
Dekers Dekers is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Posts: 547 Dekers User rank is Sergeant (500 - 2000 Reputation Level)Dekers User rank is Sergeant (500 - 2000 Reputation Level)Dekers User rank is Sergeant (500 - 2000 Reputation Level)Dekers User rank is Sergeant (500 - 2000 Reputation Level)Dekers User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m
Reputation Power: 19
myabe with sleep( )?

Dekers
__________________
You haven't tried, you haven't lived

Reply With Quote
  #3  
Old September 22nd, 2005, 08:56 AM
ashkam's Avatar
ashkam ashkam is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 265 ashkam User rank is Corporal (100 - 500 Reputation Level)ashkam User rank is Corporal (100 - 500 Reputation Level)ashkam User rank is Corporal (100 - 500 Reputation Level)ashkam User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 8 h 35 m 17 sec
Reputation Power: 6
Send a message via AIM to ashkam Send a message via Yahoo to ashkam
Yup I tried sleep but my script stops execution for 5 secs... which is not what I wanted...

Reply With Quote
  #4  
Old September 22nd, 2005, 09:41 AM
Dekers Dekers is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Posts: 547 Dekers User rank is Sergeant (500 - 2000 Reputation Level)Dekers User rank is Sergeant (500 - 2000 Reputation Level)Dekers User rank is Sergeant (500 - 2000 Reputation Level)Dekers User rank is Sergeant (500 - 2000 Reputation Level)Dekers User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m
Reputation Power: 19
maybe give us some backround about your script... some more info could maybe help

cheers, Dekers

Reply With Quote
  #5  
Old September 22nd, 2005, 11:14 AM
Skudd's Avatar
Skudd Skudd is offline
Calvin's Mother.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Houston, TX
Posts: 422 Skudd User rank is Sergeant Major (2000 - 5000 Reputation Level)Skudd User rank is Sergeant Major (2000 - 5000 Reputation Level)Skudd User rank is Sergeant Major (2000 - 5000 Reputation Level)Skudd User rank is Sergeant Major (2000 - 5000 Reputation Level)Skudd User rank is Sergeant Major (2000 - 5000 Reputation Level)Skudd User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 12 h 34 m 16 sec
Reputation Power: 30
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!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Callback in 5 secs


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT