<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<base href="../" />
<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Help  /  File Info Plugin</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Help  /  File Info Plugin</h1>
</div>
<div id="content">



<div class="wikitext"><h3>Synopsis</h3>
<p class="tightenable">The <a href="Help/FileInfoPlugin" class="named-interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />FileInfo</span></a> plugin displays the version, date, size,
perms of an uploaded file.  Only files relative and below to the uploads path
can be handled.</p>
<p class="tightenable">For exe files the <b>version</b> argument might work to display the VERSIONINFO ressource string. (highly experimental).</p>
<p class="tightenable">Since v1.3.13.</p>
<h3>Typical Usage</h3>
<pre class="tightenable top">
  &lt;?plugin FileInfo file=uploads/setup.exe display=version,date ?&gt;
  &lt;?plugin FileInfo file=uploads/setup.exe display=name,version,date
                    format=&quot;%s (version: %s, date: %s)&quot; ?&gt;</pre>
<h3>Arguments</h3>
<dl><dt class="tightenable top bottom"><strong>file</strong></dt>
<dd class="tightenable top">relative path from PHPWIKI_DIR. (required)</dd>
<dt class="tightenable bottom"><strong>display</strong></dt>
<dd class="tightenable top">Comma-seperated string of version,size,phonysize,date,mtime,owner,name,path,dirname,
link,mime-typ,magic. (required)</dd>
<dt class="tightenable bottom"><strong>format</strong></dt>
<dd class="tightenable top">printf format string with %s only, all display modes from above vars return strings (optional)</dd>
</dl>
<h3>Examples</h3>
<p class="tightenable">This wiki was installed at <span class="plugin" id="FileInfoPlugin"> 08/14/07 07:10:57</span>.</p>
<hr />
<p class="tightenable top bottom"><a href="PhpWikiDocumentation.html" class="wiki">PhpWikiDocumentation</a> <a href="Help/WikiPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">WikiPlugin</span></a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;admin&quot;  Last edited on August 14, 2007  7:11 am by &quot;The PhpWiki programming team&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
