Working out how to list a directory

dirname(__FILE__): /home2/colorado/public_html/pdp/php
/home2/colorado/public_html/pdp/php
dir: /home2/colorado/public_html/pdp/php
output: Array ( [0] => . [1] => .. [2] => concat.htm [3] => dir.php [4] => error_log [5] => globIt.php [6] => index.htm [7] => os.php [8] => readline.php [9] => readme.txt [10] => simarr.php [11] => simple.php )
Array ( [0] => . [1] => .. [2] => concat.htm [3] => dir.php [4] => error_log [5] => globIt.php [6] => index.htm [7] => os.php [8] => readline.php [9] => readme.txt [10] => simarr.php [11] => simple.php )
This is /home2/colorado/public_html/pdp/php
Array ( [0] => /home2/colorado/public_html/pdp/T.htm [1] => /home2/colorado/public_html/pdp/defaults.css [2] => /home2/colorado/public_html/pdp/index.htm [3] => /home2/colorado/public_html/pdp/pdptemp.htm [4] => /home2/colorado/public_html/pdp/tech.htm )