Shawn - Had not thought of FileExists - I'll look into that. Thanks for the idea.
Cheers - george --- In [email protected], "Shawn K. Hall" <[EMAIL PROTECTED]> wrote: > Hi George, > > > Admittedly I have not checked with our provider, but > > I stopped using MapPath a while back when I found > > that the provider of one of my personal sites did > > not allow it (it can be used to nagigate outside of > > one's website, so it is a security issue). > > Only if the provider has not implemented NTFS constraints to the user > account used for dishing up content for each site. > > Even if that's the case, you could use a FileSystemObject "FileExists" > routine to accomplish much the same functionality: > > set fso = server.createobject("scripting.filesystemobject") > If fso.fileexists("c:\Inetpub\wwwroot\sesius\Web.mdb") Then > ' Use this one for local development > Driver = "Provider=Microsoft.Jet.OLEDB.4.0;" _ > & "Data Source=c:\Inetpub\wwwroot\sesius\Web.mdb" > Else > ' Use this one on the server > Driver = "Provider=Microsoft.Jet.OLEDB.4.0;" _ > & "Data Source=d:\Inetpub\wwwroot\sesi-md.com\Web.mdb" > End If > set fso = nothing > > > > If you or anyone else knows of documentation on this > > then I would appreciate a link, as I can see where > > this might be very useful information. > > http://www.microsoft.com/technet/security/tools/urlscan.mspx > The "AllowDotInPath" declaration is the one to look at. > The configuration file you'll to edit is located here: > system32\inetsrv\urlscan\urlscan.ini > > Regards, > > Shawn K. Hall > http://12PointDesign.com/ > http://ReliableAnswers.com/ ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
