My current website uses the PHP scandir function to read the contents of a sub-directory and then includes each one of the files found by the scandir function into the main page.
The code has been tested using XAMPP (Apache based) web server locally and the code works fine. However, when the code is uploaded to your web hosting server, it does not include an files as if the scandir function did not find any files. I have checked and the proper sub-folder does include the desired file. I have even tried changing the scnadir reference from relative to an absolute path but still no results. The PHP scandir function does not seem to return any errors (like it did on other hosting sites that did not support the scandir function).