[thelist] CGI pass var 2 XSSI / SSI syntax / embedded Perl - 3 simple questions

martin.p.burns at uk.pwcglobal.com martin.p.burns at uk.pwcglobal.com
Thu Nov 15 04:07:49 CST 2001

Memo from Martin P Burns of PricewaterhouseCoopers

-------------------- Start of message text --------------------

To:   thelist at lists.evolt.org
Subject:  [thelist] CGI pass var 2 XSSI / SSI syntax / embedded Perl - 3
      simple questions

>1.  Can CGI create/modify variables which can be accessed by an SSI later
>the same page?

Environmental variables for sure, but don't know about others - I suspect

>2.  Is there any syntactical trick which would enable me to simply add a
>character (or 4) to the DOCUMENT_URI and call that as an SSI?

Don't know if this will help, but you do know that you can recursively
Apache SSIs?

So if you have your SSI in a .fhtml file, you can make Apache parse .fhtml
by adding it to your .htaccess file just as with any other type.

Also you've got a fair amount of functionality in XSSI -
you can concatenate string variables along the lines of (coding from

<!--#set var="URI" value="$DOCUMENT_URI" -->
<!--#set var="menu" value="menu" -->
<!--#set var="menu_location" value="$URI$menu" -->
#   The menu location is (drumroll):
#   <!--#echo var="$menu_location" -->
<!--#include virtual="$menu_location" -->

>3.  I've read about modules which allow Perl to be embedded directly in a
>page.  What are the dis/advantages of 'embedded Perl' and how simple is it
>to get into?

The thing about any kind of Perl is that it's a much higher performance
overhead than XSSI - if you can get the same result with XSSI then that's
the way I'd go.

--------------------- End of message text --------------------

This e-mail is sent by the above named in their
individual, non-business capacity and is not on
behalf of PricewaterhouseCoopers.

PricewaterhouseCoopers may monitor outgoing and incoming
e-mails and other telecommunications on its e-mail and
telecommunications systems.
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any

More information about the thelist mailing list