Make PHP show the files in the folder

0

Well, I'm working on my project. A read app.

But I want to do something to help with it, I have over 12,000 pdf's to put in the application.

I wanted to put the pdf in the folder it appeared the way it is shown in the picture below

Or is the method used there a post? help me

obs

    
asked by anonymous 17.06.2017 / 22:23

1 answer

0

Here is an example to list the files (of a certain type) in a directory.

chdir( 'path' );
$files = glob("{*.pdf,}", GLOB_BRACE);
foreach($files as $file) echo $file;

Remembering that as commented out, this is not the best way for a solution like yours. ;)

    
19.06.2017 / 18:45