Jump to content


Pause a script

  • Please log in to reply
2 replies to this topic

#1 joecooper

  • Members
  • PipPipPip
  • Advanced Member
  • 358 posts

Posted 10 March 2006 - 10:12 PM

what code would i need to pause a script for 48 hours then when the time is up, continue the script?
[a href="http://www.planet-so...=1999&lngWId=8" target="_blank"]EzLogin 1.0[/a]
[a href="http://www.essexracers.com" target="_blank"]Essexracers.com[/a]
Msn Messenger: joe@joeyjoe.co.uk

#2 CyrusTh3VIrus

  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 10 March 2006 - 10:28 PM

You can use sleep(); like this:

while (true) {
// Do something here

and replace sleep(seconds); with how many seconds you would like to pause the script

#3 txmedic03

  • Members
  • PipPipPip
  • Advanced Member
  • 313 posts
  • LocationCall, TX, USA

Posted 11 March 2006 - 01:05 AM

I have got to know, what on earth would make you want to pause a script for 48 hours? Secondly pausing a script for 48 hours would exceed the default maximum execution time of 30 seconds so you either need to raise the limit or create a persistent connection.


I can't stop you from doing something silly, but at least I can help you do it right.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users