4 Replies Latest reply on Dec 12, 2008 5:37 AM by Newsgroup_User

    PHP to CF Conversion

    wkolcz Level 1
      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>