Originally posted by Jaeboy
Can i specify a time out message after xx length of waiting?
Waiting for what? User input? Server-side processing? New episode of South Park?
If it’s user input, you would need to use something other than PHP… javascript would do the trick:
<HTML>
<HEAD>
<TITLE>Javascript Timer</TITLE>
<SCRIPT LANGUAGE="Javascript">
<!--
var x = 5 // timer start value
var y = 1
function startClock(){
x = x-y
setTimeout("startClock()", 1000)
if(x==0){
// do something here
alert("Times up!");
}
}
//-->
</SCRIPT>
</HEAD>
<BODY onLoad="startClock()">
The clock is ticking...
</BODY>
</HTML>
If it’s some kind of processing you want to time look here: http://www.phpbuilder.com/manual/function.microtime.php
If it’s South Park, look here: http://www.comedycentral.com/tv_shows/southpark