apache+php+ssi
Posted: Fri May 11, 2007 4:10 am
Hi
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:
then I include this php file into .shtml page with ssi virtual include
end the next code returns (none).
There is no problem with virtual include, it is works correctly. But what doesn't allow to see the env. variables which was set in php script?
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
ssi echo works.
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!
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!