[PHP] share code between sites

2009-06-21 Thread Lars Nielsen
Hey List

Is there any good approach to share code between multiple sites? The
code might be on the same server but on different domains.

best regards

Lars


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



Re: [PHP] share code between sites

2009-06-21 Thread Eddie Drapkin
The same document root and different Vhosts?

On Sun, Jun 21, 2009 at 4:01 PM, Lars Nielsenl...@mit-web.dk wrote:
 Hey List

 Is there any good approach to share code between multiple sites? The
 code might be on the same server but on different domains.

 best regards

 Lars


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



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



Re: [PHP] share code between sites

2009-06-21 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 2:01 PM, Lars Nielsen l...@mit-web.dk wrote:

 Hey List

 Is there any good approach to share code between multiple sites? The
 code might be on the same server but on different domains.


put your common code outside the web root, and use the include_path ini
setting in all the various sites to get access to it.

thats one way to do it.


-nathan


Re: [PHP] share code between sites

2009-06-21 Thread Lars Nielsen
Yeah maybe thats the way to do it. It certantly sounds like a working
solution.

søn, 21 06 2009 kl. 16:02 -0400, skrev Eddie Drapkin:
 The same document root and different Vhosts?
 
 On Sun, Jun 21, 2009 at 4:01 PM, Lars Nielsenl...@mit-web.dk wrote:
  Hey List
 
  Is there any good approach to share code between multiple sites? The
  code might be on the same server but on different domains.
 
  best regards
 
  Lars
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


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