For the home page of my Magento store, I am using a basic gallery script which scans a predefined directory using scandir() and outputs each filename to be displayed in the gallery.
Everything works ok on my local machine, but the script seems to ignore the scandir() and just proceeds as normal without any errors or warnings. If I replace the scandir() and input the filenames directly, the gallery script works fine.
What is going wrong here?
Hard to tell without seeing your code in context, but my guess if
scandiris returning an empty array, probably because you’re not passing it what you think you’re passing it. Add some debugging to your calls toscandirand you should have a better idea of whats going on.