This topic is locked
[SOLVED]

Use file directory to add a filename

3/30/2022 10:51:25 AM
PHPRunner General questions
gehrenfeld author

I have a directory with all my pdf files.

I want to browse a directory and select one of the files and then just add the filename not upload the file.

Sergey Kornilov admin 3/30/2022

This can be done, some code needs to be written of course. In regards to getting a list of files in the directory check this topic.

gehrenfeld author 3/30/2022

foreach(glob($log_directory.'/.') as $file) {
...
}

I do not know how or were to use the above script.

Sergey Kornilov admin 3/30/2022

We don't know either. It depends on where you need to apply this kind of functionality.