you could write a function that looks thru directories and sub directories (like a hdd search) then filter out the outout, for .*
then add a loop in in where if the script finds a .txt file or .log file to execute a command kinda like this..
<?
echo "Log File<br>";
passthru("type c:\ws_ftp.log");
echo "<br>Text File<br>";
passthru("type c:\mpcsetup.txt");
?>