in reply to SSI problem...

In HTML (and SSI mimics HTML), quotes are not escaped with a slash, they're encoded as ". Try

<!--#perl sub="sub { print &quot;hello, world!&quot;; }"

Update: Removed the extra e from &quote;.

Replies are listed 'Best First'.
Re^2: SSI problem...
by Anonymous Monk on Jun 07, 2005 at 19:32 UTC
    Thanks for the advise... but still not work :(
      Do you get the same error, or something different? Do you know where SSI is documented so I can take a look?
      It has been brought to my attention that it should be &quot;, not &quote;. silly me! I've fixed my original post.
        I try like you said in first time but then a belive that is "e ... a misstake :). I'm looking for the documentation about SSI...
        I don't know if is this that you are talking about...
        in httpd.conf
        # This should be changed to whatever you set DocumentRoot to.
        #
        LoadModule perl_module modules/mod_perl.so
        #<Directory "C:/indigoperl/apache/htdocs">
        <Directory "C:...public_html/www_root">
        #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        # Indexes Includes FollowSymLinks SymLinksifOwnerMatch
        ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* ---
        "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.
        Please see
        # http://httpd.apache.org/docs-2.0/mod/core.html#options
        # for more information.
        #
        #ISEXT
        # Options Indexes FollowSymLinks
        Options Indexes FollowSymLinks MultiViews ExecCGI
        +Includes
        #ISEXT BEGIN
        # BEGIN MOD_PERL CONFIG
        PerlSendHeader On
        <Files "*.pl">
        SetHandler perl-script
        PerlHandler ModPerl::Registry
        Options ExecCGI
        </Files>
        # END MOD_PERL CONFIG
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        # Options FileInfo AuthConfig Limit
        #
        AllowOverride None
        #
        # Controls who can get stuff from this server.
        #
        Order allow,deny
        Allow from all
        </Directory>
        and the only thing that i find about *.shtml is ...
        #
        # For type maps (negotiated resources):
        # (This is enabled by default to allow the Apache "It Worked" page
        # to be distributed in multiple languages.)
        #
        AddHandler type-map var

        #
        # Filters allow you to process content before it is sent to the client.
        #
        # To parse .shtml files for server-side includes (SSI):
        # (You will also need to add "Includes" to the "Options" directive.)
        #
        #AddType text/html .shtml
        #AddOutputFilter INCLUDES .shtml
        #ISEXT
        AddType text/html .shtml
        AddHandler server-parsed .shtml

        #
        # Action lets you define media types that will execute a script whenever
        # a matching file is called. This eliminates the need for repeated URL
        # pathnames for oft-used CGI file processors.
        # Format: Action media/type /cgi-script/location
        # Format: Action handler-name /cgi-script/location
        #
        I hope that can help you... help me :)