The value of this variable is always between 1 and DIRLIST_FILES_COUNT. if available.)ĭIRLIST_FILE_INDEX: The index of the current file in the listing. which points to the parent directoryĭIRLIST_FILES_COUNT: The total number of the files in the directory listing (including the regular files, the directories, and the special directory. It is set to file if the current file is a regular file, to dir if it is a directory, or to parentdir for the special directory. If the file is a directory, the value of this variable will contain Directory.ĭIRLIST_FILE_TYPE: The type of the current file. For example, if its MIME type of is text/html, this variable will be set to html. If the file is a directory, the value of this variable is set to DirectoryĭIRLIST_FILE_MIME_SUB_TYPE: The MIME sub-type of the current file. For example, if its MIME type is text/html, this variable will contain text. If the file is a directory, the value of this variable is set to Directory.ĭIRLIST_FILE_MIME_MAIN_TYPE: The main MIME type of the current file. This parameter can be configured in the XSSI section of the console or temporarily modified using the directive.ĭIRLIST_FILE_MIME_TYPE: The MIME type of the current file. It will be conforming to the current XSSI time format. Directory listing is a web server function that displays the directory contents when there is no index file in a specific website directory. This parameter can be configured in the XSSI section of the console or temporarily modified using the directive.ĭIRLIST_FILE_LOCAL_DATE: The last modification date of the current file expressed in local time. It will be conforming to the current XSSI time format. If the current file is a directory, this variable is set to the - (hyphen) symbol.ĭIRLIST_FILE_DATE: The last modification date of the current file expressed in UTC (coordinated universal time). This parameter can be configured in the XSSI section of the console or temporarily modified using the directive. It will be conforming to the current XSSI size format. This name is UTF-8 encoded.ĭIRLIST_FILE_URL: The relative URL of the current file.ĭIRLIST_FILE_SIZE: The size of the current file. While processing the line description for a given file, the server sets the following environment variables in addition to the standard CGI environment variables:ĭIRLIST_FILE_NAME: The name of the current file. So you can (in fact, you should) use XSSI directives to insert information about every file in the generated page. When generating a directory listing using a template, the server creates a special XSSI environment before processing the header, the line description for every file in the listing, and the footer. Header: It is the header of the listing page that will be rendered.īody Line: It is the template of each file or directory line in the listing.įooter: It is the footer of the listing page. Since file names are provided using the UTF-8 text encoding, the template MIME type should always contain this text encoding (charset) value. MIME Type: It is by default text/html charset=utf-8. A directory listing template is defined by its:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |