Sven Utcke's Wunschzettel
// find out if we need to generate a new version of the wunschzettel
$HTMLfile = "/home/utcke/public_html/Private/wunschzettel/wunschzettel.html";
$TEXfile = "/home/utcke/public_html/Private/wunschzettel.tex";
if (!(file_exists($HTMLfile)) ||
(filemtime($TEXfile) > filemtime($HTMLfile))) {
// generate a new version;
exec('/software/latex2html-99.2beta8/SunOS-5.6/bin/latex2html wunschzettel');
}
// load new version
$contentArray=file($HTMLfile);
$content = implode('', $contentArray);
// remove head (s: . matches newlines; U: un-greedy
$content = preg_replace("#^.*#sU", "", $content, 1);
// remove tail
$content = preg_replace("/
.*/s", "", $content, 1);
echo $content;
?>