View Single Post
Old Sep 15th, 2005, 9:43 AM   #4
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
i'm bored, so here is some basic untested code:
<?php
$pagetoread = $_GET['page'];
unset($_GET['page']);

$f = fopen($pagetoread, "rb");
$contents = fread($f, filesize($pagetoread));
fclose($f);

echo $contents;
?>

next steps would include passing parameters, parsing the file so you can also let it load images via the server, etc.
Polyphemus_ is offline   Reply With Quote