D
D
Denis2016-02-22 11:39:03
PHP
Denis, 2016-02-22 11:39:03

How to show files that are in the site folder?

I wanted to make a site for myself, on which the files will lie. I did everything, everything is fine, but it was inconvenient for me, because I did not see all the files that are in the folder. Tell me how to do it. (Similar to the screenshot.)
f4756128d0244bcbae19fa418287e8df.jpg

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
IceJOKER, 2016-02-22
@Denpin

$scan = scandir('folder');
var_dump($scan);

Y
Yuri, 2016-02-22
@riky

foreach(glob('dir/*.jpg') as $file) {
   echo $file;
}

M
Mikhail Rybalka, 2016-02-22
@RuSPanzer

glob($pathToDir . '.*');

D
Dmitry Kuznetsov, 2016-02-22
@dima9595

It is not entirely clear what you meant by indicating that it is not convenient for you ...
Show your source, we are not psychics here ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question