Shawn
Shawn

Reputation: 34229

What extension to enable in order to use scandir() in php?

I read from the php documentation that since 5.1.0 scandir() is by default not usable in php.

How can i enable it?

Upvotes: 1

Views: 586

Answers (2)

Piskvor left the building
Piskvor left the building

Reputation: 92752

On the documentation page, I don't see anything to support your claim - the only reference to version is "(PHP 5)", and scandir() is a built-in function, so you don't need an additional extension for it.

(Anyway, the docs page has a long list of alternative approaches and/or improvements.)

Upvotes: 2

alex
alex

Reputation: 490233

Where does it say that in the docs?

Have you tried using it?

If it doesn't work, you can probably use glob().

Upvotes: 1

Related Questions