Re: One set of php for multiple subdomains

From: Date: Tue, 18 Mar 2003 14:08:22 +0000
Subject: Re: One set of php for multiple subdomains
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-140121@lists.php.net to get a copy of this message
At 23:43 17.03.2003, Radu Manole said: --------------------[snip]-------------------- >Hi guys, > >I have 2 scripts located in a directory and 3 dirs with 3 subdomain. >Something like this. > >/scripts > - input.php > - output.php > >/user1 -> subdomain user1.mysite.com >/user2 -> subdomain user2.mysite.com >/user3 -> subdomain user3.mysite.com > >What can I do to execute the input.php script from any subdomain and get >output.php (response) in the same subdomain? >Do I need to copy the "scripts" directory in each subdomain dir? --------------------[snip]-------------------- If you're on *nix you can simply create symbolic links to the directory: ln -s /scripts /user1/scripts ln -s /scripts /user2/scripts ln -s /scripts /user3/scripts Now all 3 user directory will contain a symbolic link to the /scripts directory, within their domain tree. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#140121) next »