Im using the following function to get the file list from specific folders:
$files = glob("/path/to/file/*");
Sadly, when using the following folder path, glob doesn't output anything:
$files = glob("/var/www/html/dl-meta/anime/[Erai-raws] Anime name - 01~12 [720p][Multiple Subtitle]/*");
...Even tho the path is 100% valid. When copying this path to my file explorer, it works just fine (if we remove the * at the end).
Why is that? What character do I need to escape? Is there any other characters I should escape so that type of bug doesn't happen in the future?
Cheers.