global variable for all scripts

From: Date: Fri, 09 Nov 2001 23:53:09 +0000
Subject: global variable for all scripts
Groups: php.dev 
Request: Send a blank email to php-dev+get-69932@lists.php.net to get a copy of this message
hi ppl, id like to set something like a global variable or constant. i need this, to set the path of my document root. all scripts should then use this path. e.g. my apache document root is: /www all my skriptfiles are in /www/my_subdir i include a special php script in all script files with: /* <? include("config/file.php"); .... ?> */ if i like to move my scripts to /www/my_newdir i habe to change the include() function in every script any workaround here? thanks a lot in advance sascha -- ------------------------------------------------------- Sascha Biber Hegenloh Reisen GmbH t: 0 71 61-67 34-68 f: 0 71 61-67 34-64 m: 0177-589 14 96

« previous php.dev (#69932) next »