I have been using the SetEnv directive in my htaccess files. So far its worked fine. Today I tried to use the same technique in a different dir/domain and it doesn’t work…The other directives of the htaccess file seem to be picked up so I don’t get the sense that the htaccess is bad, but is it possible the server only refreshes env vars occasionally? Seems contrary to my experience of apache, but I don’t really understand why the same htaccess lines work in one place and not another…
The htaccess has this:
SetEnv SAMBAINCLUDE /home/byosmosis2/samba.byosmosis.com/env.php
And the test page (http://samba.byosmosis.com/test.php) has this:
print "main_incl = $main_include. done...
And the output is this:
Warning: main(): Failed opening ‘’ for inclusion (include_path=’.:/usr/local/lib/php’) in /home/.fiery/byosmosis2/samba.byosmosis.com/test.php on line 3
main_incl = . done…