- file_get_contents: documentation ( source)
- opendir: documentation ( source)
- readdir: documentation ( source)
<?php
$handle = opendir('/tmp');
while (false !== ($entry = readdir($handle))) {
echo "$entry\n";
}
echo file_get_contents("/tmp/sess_91e9a535242e4756f3db0ca9fbe4ba61");