...But you want to be able to bring in images from any directory? Is that it?
You could write a nested array of directories and then refer to the directories by array index. But that's sort of fugly.
I suggest you use the oft-overlooked PATH_INFO field to pass the file location, rather than a query-string parameter.
In the url:
http://www.arch13.com/index.php/imgs...r11?id=brewery
You should end up in index.php with:
$_REQUEST[id] = "brewery"
and
$_SERVER[PATH_INFO] = "/imgs/brewery/brewerycolor11"
It's still a lengthy URL, but it's not carying a ton of extra info in the QUERY_STRING, and it looks (except for that ".php" in there) like any old URL to a file or directory.
PATH_INFO is great for hiding the fact that it's a dynamic page. I one time turned on CGI-EXEC on the root htdocs directory, put a Perl CGI in there called "pages", and called it with URLs like:
http://www.site.com/pages/product/1234.html
My "pages" script then spun out a page based on my "product" template with data from MySQL for item number "1234", and Google was none the wiser.
