Re: [PHP] global variable for all scripts

2001-11-10 Thread Kurt Lieber
On Saturday 10 November 2001 01:29 pm, you wrote: > if i like to move my scripts to /www/my_newdir i habe to change the > include() function in every script A few options: 1. Don't use absolute paths -- use relative paths. Then you don't have to worry about it as long as the overall structure

[PHP] global variable for all scripts

2001-11-10 Thread sascha biber
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: /