I am printing out HTML from a perl script so to generate a 'web page' on the fly. However, the web page is being generated but the SSI directives are not being processed by the server.
Below is a portion of the script that I am using to pump out the HTML with embeded SSI:
print qq[
<html>
<head>
<title>KICKS JOY DARKNESS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/css/standard.css" type="text/css">
</head>
<body bgcolor="#000000" text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#FFFFFF" vlink="#FFFFFF" alink="#66CC33" class="link">
<font size="5"></font>
<table width="760" border="0" align="center" bgcolor="#333333">
<tr>
<td valign="top">
<table width="100%" border="0" bgcolor="#000000">
<tr>
<td valign="top">
<table width="100%" border="0">
<tr valign="top">
<td width="20%">
<!--#include virtual="/banners/banner_1.shtml" -->
.
.
.
Check it out at:
And look at the HTML source code of the page that is generated -- the SSI is still there!!!
My ISP isn't really helping very much with the issue and I need to finish writing the script ASAP.
Any help is greatly appreciated, and if you live in London, UK, I'll take you out for a drink!
Thank you all!
Nao Yoshino
London, UK
It is not possible to generate HTML from a script and have embedded SSI calls parsed by the server. The usual way around this, if you must include the code this way is to have the script detect the SSI statement, retrieve the path through a regex, and open the file from within the script so that it can be read and generated in place of the SSI statement. In other words, your script will have to do what the server normally does for SSI's.
Gosh, I see.
Thanks for the advice!
Nao