PDA

View Full Version : SSI


ecchi
2011-09-26, 07:14 AM
Help. I am using the following two commands on SSI:

<!--#echo var="$ENV{'SERVER_NAME'}" -->
<!--#echo var="$ENV{'HTTP_HOST'}" -->

The result I am expecting is along the lines of:

www.greenguysboard.com

But what I am actually getting is:

(none)

I have checked using Perl, both variables exist, but how do I get the results using SSI?

Thanks.

dunc
2011-09-26, 07:44 PM
I haven't looked at SSI for ages - but found this page (http://www.georgedillon.com/web/ssivar.shtml) which used this...
<!--#echo var="SERVER_NAME" -->

ecchi
2011-09-27, 02:25 AM
I haven't looked at SSI for ages - but found this page (http://www.georgedillon.com/web/ssivar.shtml) which used this...
<!--#echo var="SERVER_NAME" -->

Thanks, that works.