S
S
s2062021-06-24 06:53:10
PHP
s206, 2021-06-24 06:53:10

Reading files in a directory or attaching a file with a list of files?

Depending on the type of publication, I need to get a list of images for the carousel. How best to implement? Now scans the publish folder and gets a list of images in it. Maybe it's better to generate a file with an array containing a list of images when adding an article and then connect it?

It is not desirable to store in the database, since there is already an additional request for information about the file to be published.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question