Programmers can have their scripts reside in a safe folder, or will be able to put their WP folder outside the accessible web directories on the server.
There are 2 links to files the plugin uses. One is a URL to the file itself which loads it as your browser supports the mimetype. The second is a forced download link, which is almost the same as the first with additional headers.
There are 2 choices for the option of link type, default, and mod_rewrite. Default simply uses query variables, while mod_rewrite actually modifies your .htaccess file independantly of WordPress rewrite rules which may have already been added.
What is going on is: First the plugin uses the file path relative to the base directory to read the contents of the file example.txt into a variable, and then those contents are sent to the chosen display template named 'text'.
Templates are how all files are displayed within posts. There is no limit to how many it can have, and there is virtually no limit as to what it can be done with them. Their format is similar to how WordPress themes are dealt with and edited.
Unpack and upload it to the /wp-content/plugins/ directory.
Activate the plugin through the 'Plugins' menu in WordPress.
Navigate to the settings menu in the admin, and configure the settings of WP File-Tree
Make sure there is at least a test file in the base directory before testing the shortcode.
· WordPress 2.5 or higher