[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: [users@httpd] Re: SSI and variable expansion with unary operators
From: Paul Webster <paul () dabdig ! com>
Date: 2019-03-12 15:29:05
Message-ID: 6rjf8el81ebrga38975lrk1nplc2tq1cu6 () 4ax ! com
[Download RAW message or body]
Hello All,
Trying again with this one.
Is anyone able to repeat it using the example below and if yes ... is there a way to \
achieve what I was trying to do (without launching an external program)?
Paul Webster
On Mon, 04 Mar 2019 17:27:53 +0000, I wrote:
Hello,
I had expected the expression below to print out "File index.htm exists" given that \
it does exist in same location as the page that loads this ... but instead it tells \
me that it does not exist.
<!--#set var="filename" value="index.htm" -->
<!--#if expr='-F "%{filename}"' -->
File <!--#echo var="filename" --> exists
<!--#else -->
File <!--#echo var="filename" --> does not exist
<!--#endif -->
If I replace
<!--#if expr='-F "${filename}"' -->
with
<!--#if expr='-F "index.htm"' -->
then it does find it.
I tried with %{filename} as well.
So - it appears that variables not expanded in this case or I am doing something \
wrong. Any hints?
My real-world usage is more complicated because the var filename really is \
dynamically generated based on current date/time.
Paul Webster
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic