I recieved this advice off-list:
---
You need to include() the file containing the scandir() function.
include '/path/to/file';
or if the file is in one of the dirs you've defined above you could use
the constant instead.
You can also define your include dir in php.ini or if running as
Paul Furman wrote:
You can also define your include dir in php.ini or if running as an
apache mod in an .htaccess file.
I had luck with the include approach:
include 'c:/_Paul/web/phplib/utilities/dirfile.php';
echo scandir();
I guess it'd be more wise to put in my php.ini to
2 matches
Mail list logo