I made a PHP page that displays a directory listing complete with the actual images for image files.

I called it index.php so whenever somebody tries to get a directory listing the PHP makes it for them. The only problem is that there are many subdirectories in this directory, and copying index.php to every single subdirectory is a major pain. What can I do?