<?php
require_once './fortune.cl.php';
$dir = './'; $ex1 = 'test1.fortune'; $ex2 = 'test2.fortune';
// Quote from a desired fortune file echo "From the file 'example1.fortune':\n"; echo '<pre>'.Fortune::quote($dir.$ex1).'</pre>';
echo "From the file 'example2.fortune':\n"; echo '<pre>'.Fortune::quote($dir.$ex2).'</pre>';
// Quote from all fortune files found in the directory echo "From the current directory:\n"; echo '<pre>'.Fortune::quote($dir).'</pre>';
?>
|