I have been rewriting my fathers web site with server side includes to make future editing easier and faster.
colorwrite.webs.com
My web hosting service is running Apache/1.3.39 (Unix) mod_jk/1.2.26 mod_layout/3.2 mod_gzip/1.3.19.1a mod_throttle/3.1.2
No, they do not support php, and they have no idea they support ssi.
My question is can a fsize or flastmod be sent to a variable? or even better, used directly in an if directive?
I would like to keep my photo gallery images and descriptions in the same folder to find and edit them easily rather than wading through a massive html file like I was just a week ago. And also be able to reuse the descriptions on other pages.
-I have seen what I want to do several times in a google search, but my server does not seem to allow directives within directives like this...
<!--#config errmsg=""-->
<--#if expr="<!--#flastmod file="$fn/$ct.txt"--> != //" -->
<!--#include file="$fn/$ct.txt"-->
<--#else -->
No description for $fn/$in$ct.jpg, move on to next
<--#endif -->
-I have also seen this wich seems to only work in Apache/2
<!--#if expr="-A /$fn/$ct.txt"-->
<!--#include file="$fn/$ct.txt"-->
<!--#else -->No text for $in$ct.jpg
<!--#endif -->
-This is my current code (abbreviated), it works, but has limitations.
-contents of topic.html
<!--#set var="in" value="image name" -->
<!--#set var="fn" value="folder name" -->
<!--#set var="ct" value="01" --><!--#include file="list.shtml" -->
<!--#set var="ct" value="02" --><!--#include file="list.shtml" -->
and repeat
-contents of list.shtml
<!--#set var="ip" value=".html/gallery/project/$fn/$in" --> <!-- image path_info for link -->
<!--#set var="lnk" value="$pp$fn$ip$ct" --> <!-- link to image number whatever -->
<!--#set var="tp" value="$pp$fn/$in$ct.jpg" --> <!-- path to thumbnail number whatever -->
<li>
<a href="<!--#echo var="lnk" -->">
<img src="<!--#echo var="tp" -->">
<span>
<!--#config errmsg="No text for $in$ct.jpg"-->
<!--#include file="$fn/$ct.txt" -->
</span></a></li>
