I have the problem with apache+ php+ssi configuration. The environment variables that I set in php script are not accessible in ssi.
for example, code in php:
Code: Select all
apache_setenv('USER_ID', $_SESSION['user_id']);end the next code returns (none).
Code: Select all
<!--#echo var="USER_ID" -->This problem appared when there was a rebuilting of apache+ssi+php to make ssi visible in php scripts. Earlier apache_setenv() worked correctly.
If I try do this
Code: Select all
echo '<!--#set var="USER_ID" value="' . $user_id . '" -->';in apache_setenv() function description is written "set Apache-variable subprocess_env". What is the subprocess_env? Is it separate process that separated from the process where I use ssi variable? The variables set ssi are global and variables set apache_setenv() are not, aren't they?
The third apache_setenv() argument doesn't play any role in my case. what does it do if it is set to true or false?
Thanks very much!