Posted by phpWalter on 09/06/05 07:57
We solve the prolbem by defining a base "vars.php" file at the "root"
of the site.
In there we define paths to constants, and then these constants are
used to INCLUDE files as needed.
var.php
define( INCLUDE_PATH, '/my/path/includes/');
now I can incluse my files as Ineed
include_once INCLUDE_PATH . 'base_functions.php';
All you need to do is update that one constant as you move from site to
site and it works fine.
Linux or windows.
walter
[Back to original message]
|