Setting PHP vars in Apache Directives

From: Date: Wed, 02 Jan 2002 17:26:05 +0000
Subject: Setting PHP vars in Apache Directives
Groups: php.general 
Request: Send a blank email to php-general+get-79234@lists.php.net to get a copy of this message
We are deciding which language we will move in to, PHP or Perl. Once thing that Perl allows is the setting of variables from an Apache directive (Vhost, Directory, Location, etc). I've been looking thru the mod_php module, but I havn't see this ability of PHP. It's looking like it's possible to modify the mod_php module for Apache to support this, but I wanted to see if anyone has hit this problem before. using mod_perl it would be done as: <Location /> PerlSetVar foo bar </Location> using mod_php it would be nice to have it as: <Location /> php_set_var foo bar </Location> I do know of the php_value, php_flag, php_admin_value, php_admin_flag but these are only for INI settings. Thanks for any help before I attempt to modify mod_php ;) Joe Webster

« previous php.general (#79234) next »