Always global variables

From: Date: Mon, 09 Jul 2001 09:28:56 +0000
Subject: Always global variables
Groups: php.general 
Request: Send a blank email to php-general+get-56908@lists.php.net to get a copy of this message
To PHP-general group, Is there a way to define specific variables as "always global", without needing to define them as global at each function separately? For example, these variables are always global on my scripts, so I have to include this line in each function: // Global Variables. global $SPEEDY_GLOBAL_VARS, $HTTP_ENV_VARS, $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS; Is there a way to define them only once globally? Thanks, Uri Even-Chen Speedy Software Raanana, Israel. -------------------------------------------------------- Welcome to Speedy Net (In Hebrew): http://www.speedy.co.il/ Speedy Dating (In Hebrew): http://dating.speedy.co.il/ Speedy Composer (In English): http://www.speedy.co.il/composer/ --------------------------------------------------------

« previous php.general (#56908) next »