Ensures that appendPath and appendField builds the URL or System Path to the file using a "slash" between the appended string and the file name.
Set to either TRUE or FALSE.
$forceTrailingSlash = TRUE;
$forceTrailingSlash = FALSE;
By default, this is set to FALSE.
This option is available because some databases store the path to files without using a trailing slash in the reference to the directory. So when Wimpy SQL ED "builds" the path to the file by appending either appendPath or appendField, this option ensures that there is a "slash ( / or \) between the directory and the file name.
For example, if you database stores directory data about a particular file as:
... and you are using appendField, which uses the base name of the file stored in your database as:
... if forceTrailingSlash was left as FALSE the resulting path to the file would be:
(Notice that there is no slash between the directory name and the file name?)
... whereas if forceTrailingSlash was set to TRUE the resulting path to the file would be set correctly as:
NOTE: forceTrailingSlash will discern between Unix forward slashes ( / ) and Windows backslashes ( \ ).