[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] If file exists... show it
Quoting Handytman@aol.com (Handytman@aol.com):
> other things in the FAQ section. Anyone have a method for getting the
> word out? A new title for the FAQ question? Requiring people to sign a
> statement before downloading? 8-)
>
> Mike,
> I am sorry. I did not even think to check the FAQ. Shame on me. Thanks for
> the reproof, much-needed as it was. Dare I ask, please indulge me once more.
> I can see that for using the tag I'm using [value mv_searchspec] inside the
> [if-file] tag, there needs to be some "quoting". What I tried originally is:
> [if file /opt2/home3/titanicmemorabilia/public_html/titanic/images/sys/[value
> mv_searchspec].gif]
>
> Doesn't work. Neither does quoting the [value mv_searchspec] tag:
> [if file
> /opt2/home3/titanicmemorabilia/public_html/titanic/images/sys/"[value
> mv_searchspec]".gif]
=item file
Tests for existence of a file. Useful for placing image
tags only if the image is present.
[if file /home/user/www/images/[item-code].gif]
<IMG SRC="[item-code].gif">
[/if]
or
[if type=file term="/home/user/www/images/[item-code].gif"]
<IMG SRC="[item-code].gif">
[/if]
The C<file> test requires that the I<SafeUntrap> directive contains
C<ftfile> (which is the default).
This is what I mean. The *concept* is not getting across.
This is positional:
[if file somefile]
This is named and quoted attributes (just like HTML):
[if type=file term=somefile]
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
Be patient. God isn't 131 Willow Lane, Floor 2 | || _ \
finished with me yet. Oxford, OH 45056 | || |_) |
-- unknown <mikeh@minivend.com> |___| _ <
513.523.7621 FAX 7501 |_| \_\