Webfile-viewer tree
Hej,jeg skal bruge navnet på den fysiske sti til min webfolder hos udbyderen til følgende script...Som I kan se skal der bruges en fysisk sti til siteVARrootDir. Udbyderen sender mig konstant denne sti (er det ikke en virtuel sti?)
- customers/dandialsupport.dk/dandialsupport.dk/httpd.www/ -
Skal scriptet omformuleres eller er der nogen der har en idet om hvordan det kan løses ? Som I kan se skal der anvendes backslashes i siteVARrootDir
Begyndelsen af scriptet....
<%
'# # # # # # # # # # Configuration variables # # # # # # # # #
Dim siteVARShowUnderscoreDirs, siteVARrootDir, siteVARbaseURL, siteVARshowXtensions, siteVARrootLabel
'Location of files from a file system point of view
'siteVARrootDir = "c:\inetpub\webasp\WebFileBrowser\files\rootFolder"
siteVARrootDir = "/customers/dandialsupport.dk/dandialsupport.dk/httpd.wwwfile_browser/files/rootFolder"
'From a web server point of view
'siteVARbaseURL = "http://www.webfilebrowser.com/WebFileBrowser/files/rootFolder"
siteVARbaseURL = "http://www.dandialsupport.dk/file_browser/files/rootFolder"
'Tag to show on the root. It doesn't have to be a path, it can be any string
' (i.e. "My Files", "Contents of server", etc.
' Note: this will become a JavaScript string; in order to show the reserved
' character \ in the page, we have to "escape" it by preceeding with another \
siteVARrootLabel = "DanDial Support"
'File types to be included in list; add or remove as needed
'If you want to show all files, regardless of type, use siteVARshowXtensions = "*"
siteVARshowXtensions = "PDF,TXT,ZIP,HTML,HTM,ASP,PHP,JSP,GIF,BMP,JPG,DOC,XLS"
'Hides the annoying directories created by IIS
siteVARShowUnderscoreDirs = false 'set to true to show them
' The script needs to be configured in two ways: it needs to know where
' in the file system it should start looking for the files (server-side),
' and it needs to know how the same files can be loaded into a browser
' (client-side).
'
' Example to help you test and troubleshoot:
' Suppose a file exists at this file system path:
'
' siteVARrootDir\subdir1\filenameA.pdf
'
' Then both the value of siteVARbaseURL and the configuration of your http
' server must guarantee that this page can be loaded in a browser (try
' it manually by replacing the variable with the appropriate value
' and typing it on the browser address):
'
' siteVARbaseURL/subdir1/filenameA.pdf
'
' Notes:
' About siteVARrootDir
' 1) uses backward slashes only
' 2) it can be any valid file system path, including remote
' machines such as \\remotemachine\users\user1\myddocs
' 3) does not need and should not have a '\' at the end
' About $siteVARbaseURL
' 1) uses forward slashes only
' 2) should include the protocol (http://..., etc.)
' 3) does not need and should not have a '/' at the end
