- readfile: documentation ( source)
<?php
/*$dir = '/tmp/';
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo "filename: $file : filetype: " . filetype($dir . $file) . "\n";
}
closedir($dh);
}
*/
readfile('/tmp/.cant_touch_this');