Re: [PHP-DB] using code for multiple sites

2003-11-14 Thread Kim Steinhaug
files are then referenced as > > include($inc_root.'directory/sub_directory/file_i_want.php') > > If you move things a lot you could link each site to a single file which > sets the $inc_root, so you only change one file. > > > HTH > > Peter > > > &

Re: [PHP-DB] using code for multiple sites

2003-11-13 Thread CPT John W. Holmes
From: "Chris Boget" <[EMAIL PROTECTED]> > > > create a directory called "inc" in /usr/local/apache > > > and then add the following line to php.ini > > > include_path = ".:/usr/local/apache/inc " > > I'd use a method like this, although I'd probably just use an absolute path > > instead of adjusti

Re: [PHP-DB] using code for multiple sites

2003-11-13 Thread Chris Boget
> > create a directory called "inc" in /usr/local/apache > > and then add the following line to php.ini > > include_path = ".:/usr/local/apache/inc " > I'd use a method like this, although I'd probably just use an absolute path > instead of adjusting the include_path. What's the benefit of using a

RE: [PHP-DB] using code for multiple sites

2003-11-13 Thread Peter Lovatt
could link each site to a single file which sets the $inc_root, so you only change one file. HTH Peter -Original Message- From: mike [mailto:[EMAIL PROTECTED] Sent: 13 November 2003 14:42 To: [EMAIL PROTECTED] Subject: [PHP-DB] using code for multiple sites I currently manage severa

Re: [PHP-DB] using code for multiple sites

2003-11-13 Thread CPT John W. Holmes
- Original Message - From: "mike" <[EMAIL PROTECTED]> > I currently manage several websites that share the same code. > > create a directory called "inc" in /usr/local/apache > and then add the following line to php.ini > include_path = ".:/usr/local/apache/inc " I'd use a method like thi

RE: [PHP-DB] using code for multiple sites

2003-11-13 Thread Jacob A. van Zanen
13, 2003 3:42 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] using code for multiple sites I currently manage several websites that share the same code. This code is included into many of the pages on every site. I have duplicate copies of the code set up in each virtual host directory. Obviously this

[PHP-DB] using code for multiple sites

2003-11-13 Thread mike
I currently manage several websites that share the same code. This code is included into many of the pages on every site. I have duplicate copies of the code set up in each virtual host directory. Obviously this wastes space on my server and wastes my time having to update them all. I was looking