Q&A

Q1:The SSI examples don't seem to be working.
A1: SSI might not be working for a host of reasons. First, you should verify that your Web server supports SSI; not all do. Second, make sure that SSI has been enabled on your Web server. Third, make sure you have the right extension on your HTML files to enable SSI. You may have to contact your server administrator to find out this information. Finally, make sure you're using the right syntax for your HTML SSI tags.

If you're using the <!--#exec cgi--> tag, be sure that the CGI program works okay if you run the program without SSI.

You can tell if the server is actually executing your SSI by using the "view source" option in your browser with the page loaded. If you see the SSI tags in the page ...

Get Sams Teach Yourself Perl in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.