<?php $dir = "conf"; $list = `ls -a $dir`; $list = explode("\n",$list); array_shift($list); array_shift($list); // Get rid of the symlinks . and .. print_r($list);?>