Question
PHP to CF Conversion
I asked in a JS forum how to delay a browser closing for a
couple seconds and someone came back with the solution, however
they supplied one of the pieces in PHP to which I know nothing
about.
I know CF has no sleep function, but would like to see how much of this can be converted into a cfm page. I can try to think of a way to delay the end.
Here is their snippet:
<?php
$secs = (isset($_GET["t"]) && is_numeric($_GET["t"])) ? $_GET["t"] : 5;
sleep($secs);
echo("ready");
?>
Would something like:
<cfscript>
seconds = url.seconds;
**Something like a loop that runs for 5 seconds**
return done;
</script>
I know CF has no sleep function, but would like to see how much of this can be converted into a cfm page. I can try to think of a way to delay the end.
Here is their snippet:
<?php
$secs = (isset($_GET["t"]) && is_numeric($_GET["t"])) ? $_GET["t"] : 5;
sleep($secs);
echo("ready");
?>
Would something like:
<cfscript>
seconds = url.seconds;
**Something like a loop that runs for 5 seconds**
return done;
</script>
