There is a console script. I want to add the ability to select a file from the directory.
The most primitive:
Scan the catalog and display its contents:
foreach (scandir('./Data') as $file){ echo $file."\n"; } And now how can I make the user click on an example up or down arrow to select the desired file.