play_ Posted December 9, 2007 Share Posted December 9, 2007 So I'm making my own little picture hosting site here, and decided to look @ photobucket as an example. It's fairly simple until it comes to 'sub albums'. Take this photobucket url for instance: http://smg.photobucket.com/albums/v425/MyUserName/vacations/Florida/ okay so when you login, you are at: http://smg.photobucket.com/albums/v425/MyUserName/ which is your main album. So i then navigate from my main album to my sub album 'vacations' and the url becomes: http://smg.photobucket.com/albums/v425/MyUserName/vacations/ Now notice how as you navigate through your sub albums, the URL format is just like a regular directory hierarchy. It's as is everytime you create an album, an index file is placed in it. So my question is, any idea of how that's being done? I thought maybe mod_rewrite but doesn't look like so. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 9, 2007 Share Posted December 9, 2007 Why can't your script make a index.php file when you add a subfolder under your main folder? Quote Link to comment Share on other sites More sharing options...
play_ Posted December 9, 2007 Author Share Posted December 9, 2007 and every subfolder there of? so if i make 100 subfolders, all inside each other, each would have an index file? if so, what if later i wanted to change something in the script? those already-created index files wouldn't be changed. Quote Link to comment Share on other sites More sharing options...
play_ Posted December 9, 2007 Author Share Posted December 9, 2007 bump Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.