Re: Difficulty navigating symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Seth Foss wrote:
> Hi everyone,
> 
> I am trying to run multiple sites on the same server, that have mostly
> identical code - a pre-built application.
> 
> Anyway, I would like to save  disk space by specifying independent
> configuration files for each site, then using symbolic links to access
> the rest of the code for the application.
> 
> I have managed to configure apache so one such directory is accessed via
> a symlink, which is ok. However, a file within the linked directory
> attempts to include the configuration file (../config.php) from the
> actual parent directory instead of the directory containing the symlink.
> 
> Is there any way to configure apache or php to trace back the symlink
> when using '..', or can that only go one direction?
> 
> Thanks,
> Seth
Haven't read the entire thread, but you might also look at
http://php.net/manual/en/function.realpath.php

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux