Jump to content

"Virtual" directory?


NathanLedet

Recommended Posts

so i am wondering if this is possible, and how.

 

Right now, we have client site set up for each of our clients that we work with.

 

For example:

oursite.com/client1

oursite.com/client2

 

Within those client folders, we have other sub folders, like so:

 

oursite.com/client1/project1

oursite.com/client1/project2

oursite.com/client2/project1

 

the script I'm using now will automatically create a physical directory on the site...

 

Is it possible to create a script which recognizes those directories and sub directories, but those directories don't exist on the site? it's all handled by code, but the URL bar appears to be in those sub directories.

 

hope this makes sense..Thanks!

 

Link to comment
Share on other sites

Actually, someone posted the same question...almost exactly what I was curious about:

 

http://www.phpfreaks.com/forums/index.php/topic,204517.0.html

 

Here's another way to explain it... Myspace.com, for example.  to get to someones account, you type in myspace.com/username

 

Now, does myspace.com have MILLIONS of sub-directories for usernames? I don't think so...it doesn't make sense to me that they would.

Link to comment
Share on other sites

its not really a directory... its a diffferent way of writing uri. this has been popular when frameworks starts popping up. I had tried this but I used cakePHP. Actually the structure is somewhat different than the usual PHP (some uses MVC) but definitely it would be useful once you get the ahng of it.

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.