>It would be nice to have a php-function like > >declare_superglobal($_MYFRAMEWORK); > >And then use $_MYFRAMEWORK like $_GET.
You have a few options: if you are looking to set variables that are static and atomic, you can use environmental variables in an .htaccess file (getenv() to access them) or you can use read-only constants (define() to create them). If you need a global read-write or array variable, just use $_GLOBALS: use $_GLOBALS['_MYFRAMEWORK'] like $_GET, etc. --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php