All pastes #769268 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-11 08:43 UTC
rendered paste body
<?php
  class transcript {
    private $handle;
    public __construct($file) {
      if (file_exists($file)) {
        $this->handle = fopen($file, 'r');
        while (!feof($handle)) {
          $line = trim(fgets($handle));
          for ($i = 0; $i < strlen($line); $i++) {
            echo $line{$i};
            usleep(50000);
          }
          echo "\n";
          sleep(2);
        }
        fclose ($handle);
      }
    }
  }

  $transcript = new transcript('http://www.pitt.edu/~bobhaus/reloaded2.txt');
?>