Synopsis

The FileInfo plugin displays the version, date, size, perms of an uploaded file. Only files relative and below to the uploads path can be handled.

For exe files the version argument might work to display the VERSIONINFO ressource string. (highly experimental).

Since v1.3.13.

Typical Usage

  <?plugin FileInfo file=uploads/setup.exe display=version,date ?>
  <?plugin FileInfo file=uploads/setup.exe display=name,version,date
                    format="%s (version: %s, date: %s)" ?>

Arguments

file
relative path from PHPWIKI_DIR. (required)
display
Comma-seperated string of version,size,phonysize,date,mtime,owner,name,path,dirname, link,mime-typ,magic. (required)
format
printf format string with %s only, all display modes from above vars return strings (optional)

Examples

This wiki was installed at 01/12/18 00:50:22.


PhpWikiDocumentation Help:WikiPlugin

PHP Warning

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead:"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead:"