Scandir function in PHP5

software development

#1

I am having a fatal error while calling a scandir function. It says undefined function scandir.Is it a problem for any php version?
Plz…help me.


#2

It works in PHP5 on Dreamhost. You can try this simple on:

<?php $dir = '.'; $files1 = scandir($dir); print_r($files1); ?>