LOL, hey- I was just saying that include should be treated with caution, and in readfile you have no control what's output., besides, with file_get_contents you can do, for example, this:
Code:
if (file_exists("$pwd/.README")) {
$myText = file_get_contents("$pwd/footer.txt");
$myText = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",
"<a href=\"\\0\">\\0</a>", $myText);
$myText = nl2br($myText);
echo $myText
}
That's the code I'm using to display "README's" for dirs on my http browsable FTP directory (adds <br>'s and turns adresses into links
Bookmarks