<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Moving the DB out of the wwwroot dir</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Moving the DB out of the wwwroot dir]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 07 Apr 2026 18:53:19 +0000</pubDate>
  <lastBuildDate>Wed, 28 Jan 2004 21:52:02 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=9300</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Moving the DB out of the wwwroot dir :   evening_grosbea wrote:DP -...]]></title>
   <link>https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49676.html#49676</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=9949">dpyers</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 28&nbsp;January&nbsp;2004 at 9:52pm<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by evening_grosbea" alt="Originally posted by evening_grosbea" style="vertical-align: text-bottom;" /> <strong>evening_grosbea wrote:</strong><br /><br />DP - I assume you meant to type "physical path"?</td></tr></table> </P><P>&lt;dopeslap action="uppercut" location="upside-head"&gt; <strong>DOH</strong> <strong>!</strong>&lt;/dopeslap&gt;</P>]]>
   </description>
   <pubDate>Wed, 28 Jan 2004 21:52:02 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49676.html#49676</guid>
  </item> 
  <item>
   <title><![CDATA[Moving the DB out of the wwwroot dir : Awesome response Snapey - Thanks!...]]></title>
   <link>https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49663.html#49663</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=14912">evening_grosbea</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 28&nbsp;January&nbsp;2004 at 7:39pm<br /><br /><FONT face="Arial, Helvetica, sans-serif" color=#009933 size=5><strong>Awesome response Snapey - Thanks!</strong></FONT><IMG src="https://forums.webwiz.net/smileys/smiley1.gif" border="0">]]>
   </description>
   <pubDate>Wed, 28 Jan 2004 19:39:38 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49663.html#49663</guid>
  </item> 
  <item>
   <title><![CDATA[Moving the DB out of the wwwroot dir : To find your physical path, enter...]]></title>
   <link>https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49643.html#49643</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=4318">snapey</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 28&nbsp;January&nbsp;2004 at 5:49pm<br /><br /><P><FONT size=2>To find your physical path, enter this in a page</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp; response.write(server.MapPath("/"))</FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>This will show you the physical path to your root directory.</FONT></P><P><FONT size=2>My hosting company has all web content in a folder called <strong>htdocs</strong>, and then parallel to this is a folder called <strong>private</strong>. So whenever I want to access a file in the private area I use something like:</FONT></P><FONT size=1><P></FONT><FONT size=1>strRootPath </FONT><FONT color=#008000 size=1>=</FONT><FONT size=1> Server</FONT><FONT color=#008000 size=1>.</FONT><FONT size=1>MapPath</FONT><FONT color=#008000 size=1>(</FONT><I><FONT size=1>"/"</I></FONT><FONT color=#008000 size=1>)</FONT><FONT size=1><BR>strDbPathAndName </FONT><FONT color=#008000 size=1>=((</FONT><FONT size=1>Left</FONT><FONT color=#008000 size=1>(</FONT><FONT size=1>strRootPath,len</FONT><FONT color=#008000 size=1>(</FONT><FONT size=1>strRootPath</FONT><FONT color=#008000 size=1>)-</FONT><FONT color=#ff00f0 size=1>6</FONT><FONT color=#008000 size=1>))</FONT><FONT size=1> </FONT><FONT color=#008000 size=1>&amp;</FONT><FONT size=1> <I>"private/wwForum.mdb"</I></FONT><FONT color=#008000 size=1>)</FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>There should be 2 lines above, but the second has wrapped so be sure to enter it all on one line.<BR>I'm no ASP expert, but what this does is a) get the physical path to the root of the web site. Then b)&nbsp;find the length of that path and remove 6 (the number of characters in htdocs) This gives me the physical path to the root of my hosted web space. I can then add on the folder and database name that I am interested in.</FONT></P><P><FONT size=2>Why go to all this trouble? Because I can use the same code on any of my sites, and the physical path may change, but I can always find my databases no matter which site it is, or which folder the asp is running in.</FONT></P><P><FONT size=1>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Wed, 28 Jan 2004 17:49:37 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49643.html#49643</guid>
  </item> 
  <item>
   <title><![CDATA[Moving the DB out of the wwwroot dir : And your provider has to allow...]]></title>
   <link>https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49569.html#49569</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=8924">Eftie</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 28&nbsp;January&nbsp;2004 at 10:15am<br /><br />And your provider has to allow physical path mapping and/or ../ in the servermappath function, otherwise youre stuck as well]]>
   </description>
   <pubDate>Wed, 28 Jan 2004 10:15:38 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49569.html#49569</guid>
  </item> 
  <item>
   <title><![CDATA[Moving the DB out of the wwwroot dir : there are many ways to do it,...]]></title>
   <link>https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49551.html#49551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=13438">neotrix</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 28&nbsp;January&nbsp;2004 at 8:45am<br /><br /><P>there are many ways to do it, there must be a file manager in ur CP, most of the file managers show you the physical path.. and there is mod as well</P>]]>
   </description>
   <pubDate>Wed, 28 Jan 2004 08:45:33 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49551.html#49551</guid>
  </item> 
  <item>
   <title><![CDATA[Moving the DB out of the wwwroot dir : DP - I assume you meant to type...]]></title>
   <link>https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49539.html#49539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=14912">evening_grosbea</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 28&nbsp;January&nbsp;2004 at 7:40am<br /><br /><P>DP - I assume you meant to type "physical path"?</P><P>Also - How can I find out what drive my site is on with my host.&nbsp; Do I just contact them, or can this be accomplished using FTP or another method?</P><P>Thanks</P>]]>
   </description>
   <pubDate>Wed, 28 Jan 2004 07:40:55 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49539.html#49539</guid>
  </item> 
  <item>
   <title><![CDATA[Moving the DB out of the wwwroot dir : The virtual path will look something...]]></title>
   <link>https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49495.html#49495</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=9949">dpyers</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 28&nbsp;January&nbsp;2004 at 1:17am<br /><br />The virtual path will look something like "C:\somedir\somedir\mydb.mdb"]]>
   </description>
   <pubDate>Wed, 28 Jan 2004 01:17:49 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49495.html#49495</guid>
  </item> 
  <item>
   <title><![CDATA[Moving the DB out of the wwwroot dir : instead of defining the vertual...]]></title>
   <link>https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49469.html#49469</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=13438">neotrix</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 27&nbsp;January&nbsp;2004 at 9:51pm<br /><br /><P><FONT size=2>instead of defining the vertual path, define the physical path, and&nbsp;u can host it anywhere. even out side the www rote directory</FONT></P>]]>
   </description>
   <pubDate>Tue, 27 Jan 2004 21:51:22 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49469.html#49469</guid>
  </item> 
  <item>
   <title><![CDATA[Moving the DB out of the wwwroot dir : How can Imap the database to a...]]></title>
   <link>https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49468.html#49468</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=14912">evening_grosbea</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 27&nbsp;January&nbsp;2004 at 9:43pm<br /><br /><P>How can I&nbsp;map the database to a dir outside of the wwwroot directory&nbsp;?</P><P><BR>&nbsp;<FONT color=#000099>'Virtual path to database<BR>&nbsp;strDbPathAndName = Server.MapPath("<FONT size=5><strong>?</strong></FONT>")</FONT></P><P>Thanks in advance</P>]]>
   </description>
   <pubDate>Tue, 27 Jan 2004 21:43:59 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/moving-the-db-out-of-the-wwwroot-dir_topic9300_post49468.html#49468</guid>
  </item> 
 </channel>
</rss>