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
https://forums.phpfreaks.com/topic/112540-virtual-directory/
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
https://forums.phpfreaks.com/topic/112540-virtual-directory/#findComment-578536
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
https://forums.phpfreaks.com/topic/112540-virtual-directory/#findComment-579821
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.