Date: 04/12/01
- Next message: Eric McKeown: "Re: [phplib] sybase_affected_rows Function!!!"
- Previous message: Faine, Mark: "[phplib] strange 404 error, only on first attempt to access script"
- In reply to: Lazaro Ferreira: "[phplib] multiples PHPLIB applications on the same server"
- Next in thread: Marius Andreiana: "Re: [phplib] multiples PHPLIB applications on the same server"
- Reply: Marius Andreiana: "Re: [phplib] multiples PHPLIB applications on the same server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12 Apr 2001, at 10:32, Lazaro Ferreira wrote:
> I know I can solve it using some APACHE capabilities to include the =
> local.inc file of each Virtual site dinamically, but my development =
> environment is on WIN98 + MS PWS,
>
> Do you have any ideas on how can I include the correct local.inc file =
> dinamically, using PHP4 on Windows PWS ?
>
If it's not a too big project, manually include local.inc (plus all other
relevant *.inc) at the start of every page.
Otherway, if your applications are in different subdirectory, you
could do like this to sweat a little less and achieve the same result:
set INCLUDE PATH in php.ini giving priority to the "current" dir in
respect to usual include dir, e.g. ".;/home/phplib" or something like
that (check the sintax, under win32 is a little tricky).
-put in the usual prepend.php3 a single include command that calls
a "local" prepend file
-put in every application dir the "localized" version of prepend
This way, the file that gets auto_prepended it's the same for all
installation (and with PWS there's no way to do differently), but
depending on which subdir the page is, it will include different sets
of *.inc files.
HTH, bye
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Fabrizio Ermini Alternate E-mail:
C.so Umberto, 7 faermini <email protected>
loc. Meleto Valdarno Mail on GSM: (keep it short!)
52020 Cavriglia (AR) faermini <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Eric McKeown: "Re: [phplib] sybase_affected_rows Function!!!"
- Previous message: Faine, Mark: "[phplib] strange 404 error, only on first attempt to access script"
- In reply to: Lazaro Ferreira: "[phplib] multiples PHPLIB applications on the same server"
- Next in thread: Marius Andreiana: "Re: [phplib] multiples PHPLIB applications on the same server"
- Reply: Marius Andreiana: "Re: [phplib] multiples PHPLIB applications on the same server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

