potresti fare così:

Codice PHP:
<html>
<head><title></title></head>
<body>
[url="<?=$_SERVER['PHP_SELF']?>&id=1"]clicca qui per vedere il file[/url]
<?php if ($_REQUEST['id']==1readfile('pippo.txt'?>
</body>
</html>