A
A
alex5e2015-12-21 00:48:45
PHP
alex5e, 2015-12-21 00:48:45

Why doesn't scandir() return some directories?

Has anyone encountered a problem when scandir() does not return all the contents of a directory? In my case, there are 25,000 more directories in the directory, but scandir() returns 10,590. The directories have the same rights, they are not hidden, they are freely opened through FileZilla. What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Pavlenko, 2015-12-21
@Akdmeh

Maybe some kind of limit. Try to get around with opendir and readdir

D
Dmitry, 2015-12-21
@mytmid

How long does your script take to run?
Perhaps it makes sense to increase the maximum script execution time:
ini_set('max_execution_time', 3600);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question