Yes. In your apache configuration, set DirectoryIndex to something like
DirectoryIndex index.html index.php
This way, if the user opens foo.com/some/dir/ if there is an index.php file in dir/, it automatically goes (make sure there is no index.html)
Then, just write your thumbnail script and name it as index.php
|