I would like to display an image but have the file name different than the actual file name on the server.
ex) The user开发者_JS百科 would see <img src="/img/photos/Awesome_Picture_By_John.jpg">
by looking at the source code
but the actual file name would be /img/photos/12b7dch2.jpg
any help is appreciated. Thx
It can be done pretty easily. I think you could do something like this with mod_rewrite, turn the existing
/img/photos/Awesome_Picture_By_John.jpg
Into something like
/img.php?id=Awesome_Picture_By_John
and have img.php pull the real filename out of the database.
Here is a good mod_rewrite tutorial to get you started.
精彩评论