I have set a custom php_value in the apache configuration, but when I call ini_get() from php, the value does not appear
Apache vhosts has
<VirtualHost *:80>
ServerName foo
DocumentRoot "c:\xampp\app1"
<Directory "c:\xampp\htdocs\app1">
AllowOverride All
Options All
php_value include_path ".;C:\xampp\php\pear\;C:\xampp\htdocs;C:\xampp\htdocs\app1;C:\xampp\htdocs\pcweb\app1\class"
php_value bar_name "bar_none"
</Directory>
<Directory "c:\xampp\htdocs\app2">
AllowOverride All
Options All
php_value include_path ".;C:\xampp\php\pear\;C:\xampp\htdocs;C:\xampp\htdocs\app2;C:\xampp\htdocs\app2\class"
php_value bar_name "ou_et_le_bar_jon"
</Directory>
</VirtualHost>
I am expecting, the bar_name to have the corresponding value....in php code, as follows:
<?php
echo nl2br("bar_name has value ini_get("bar_name"). \n");
?>
show either bar_name (directory context for app1) or ou_et_le_bar_jon (directory context for app2).
It prints
bar_name has value .
(meaning the php_value is not be dealt with properly or I have not done it right).
I can use ini_get("include_path") to get the include path, however.
Any suggestions?