Re: Common Files

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

 



On 16/04/06, Jochem Maas <jochem@xxxxxxxxxxxxx> 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

-- 
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