I'm trying to add a conditional comment either outside or inside an ssi include.
I'm using a remote apache server. Here's the server info from phpinfo():
Both the webpage and the include have a .shtml file extension. I tried the following code as a test but all I get is error messages:
I also tried:
All I'm getting is the following double error message:
Can anyone see anything wrong with my syntax? I've never used ssi before so I'm guessing it's something I'm doing wrong.
TIA.
I'm using a remote apache server. Here's the server info from phpinfo():
Code:
Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.27 OpenSSL/0.9.7f
Both the webpage and the include have a .shtml file extension. I tried the following code as a test but all I get is error messages:
Code:
<!--#set var="lang" value="french" -->
<!--#if lang="french" -->
<!--#include virtual="../_includes/header.shtml" -->
<!--#endif -->
I also tried:
Code:
<!--#set var="lang" value="french" -->
<!--#if $(lang)="french" -->
<!--#include virtual="../_includes/header.shtml" -->
<!--#endif -->
All I'm getting is the following double error message:
[an error occurred while processing this directive]
[an error occurred while processing this directive]
Can anyone see anything wrong with my syntax? I've never used ssi before so I'm guessing it's something I'm doing wrong.
TIA.