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. Link to comment https://forums.phpfreaks.com/topic/80840-how-photobucket-works/ 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? Link to comment https://forums.phpfreaks.com/topic/80840-how-photobucket-works/#findComment-410111 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. Link to comment https://forums.phpfreaks.com/topic/80840-how-photobucket-works/#findComment-410113 Share on other sites More sharing options...
play_ Posted December 9, 2007 Author Share Posted December 9, 2007 bump Link to comment https://forums.phpfreaks.com/topic/80840-how-photobucket-works/#findComment-410402 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.