--- Nate <[EMAIL PROTECTED]> wrote: > I've been working with ColdFusion for my real job and sticking with PHP > for my side work and have a question. In CF, they have virtual > directories you can set up that you can use the address of > mydomain.com/admin and have it access files from another location on the > same server thisdomain.com/clientadmin > > I was wondering if there is something similar to this in PHP. I run a > reseller account on a server and can access databases from different > domains, so I was hoping this could be possible. If anyone has any > ideas, please let me know. > > Thanks, > > Nate
I think this is more of a webserver feature than a programming language one. In Apache, for example, there is an alias directive which allows you do do what you describe: Alias /partofURLafterdomainname /path/to/files/in/filesystem If you don't have access to change your Appache configuration file, you may be able to accomplish this in a .htaccess file in the top web directory. Another choice, though more complex, is mod_rewrite, an Apache module which lets you rewrite URLs. These can sometimes be run in a .htaccess file as well. James _____ James D. Keeline http://www.Keeline.com http://www.Keeline.com/articles http://Stratemeyer.org http://www.Keeline.com/TSCollection http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc. Summer Semester Begins Jun 20 -- New Classes Start Every Few Weeks. ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hbpf23d/M=362335.6886445.7839731.1510227/D=groups/S=1705005703:TM/Y=YAHOO/EXP=1124991484/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font> --------------------------------------------------------------------~-> Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
