Anonymous
public text v1 · immutable<?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');
?>