Jump to content

How photobucket works?


play_

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.