Re: Common Files

From: Date: Sun, 16 Apr 2006 10:01:19 +0000
Subject: Re: Common Files
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-234066@lists.php.net to get a copy of this message
On 16/04/06, Jochem Maas <jochem@iamjochem.com> wrote: > Shaun wrote: > > Hi, > > > > We have a dedicated UNIX server running FreeBSD, is it possible to set a > > directory where we can place a set of common files that can be used by all > > of our web sites? > also check out PEAR (pear.php.net) which does exactly what you asked about, > the pear system may give you more/some ideas about how to structure and access > you common files. I tend to collect all my common code into a single directory heirarchy, and put a copy into the systems' PEAR directory. Then I can just go require_once 'MyCompany/filename.php'; from anywhere on the system. Until PEAR produces a module called 'MyCompany' (unlikely), it will live there entirely happily. Alister

« previous php.general (#234066) next »