I'm having trouble with glob() which does not return the result as expected. Basically, we upgraded the webserver to Php 8.2 from Php 7.x (Xampp setup) and in the code the glob() looking for matching files in a network path. new server has access to this path same as the old server, but it does not return the result.
my glob() function set similar to follow:
$folder_path = "\\10.0.0.10\Docs\T\T(02000-02999)\T-02345";
$file = glob($folder_path . "\*Scoping.[Pp][Dd][Ff]", GLOB_BRACE);
There is a PDF file with the name "_T-02345 Scoping.pdf" in the folder. but I get empty array.
I have tried various fixes but cannot figure out why it does not work.
Any help would be really appreciated.
Please note: The above setup working fine on old server and stopped working on new server. Old server is running on Windows server 2012 R2 + XAMPP 3.2.2 and the new server is Windows server 2019 + XAMPP 3.3.0
This question is nothing to do with single quote or double quote issue and SO detect this as a duplicate question. As explain the question this was some settings issue and cannot figure out what is not correct. The exact same code working fine on old server.