0
I am working on the development of a page in html/PHP in which the goal is to perform the search for information on certain processes.
For each process covered by the search filter the page displays a set of information.
My goal is to relate files from a specific directory that have relation to filtered processes. All files are listed in the same directory and each file has its name started with the year and the process number (in this format: yyyy_p_resto-do-nome.zip
, where yyyy
is the year and p
is the case number).
Basically, I need a code example that allows me to relate the files to download on the page based on this name start, keeping in mind that I work with variables in php for the year and the desired process number.
To try to make understanding easier, suppose from the universe of files I have in the directory, I want to relate all that start with "2018_10_
" to display on the page and download it.
I hope I’ve been clear enough. Thank you.
Thank you, it’s all right
– Matheus Frighetto