Virtual Path And Physical Root
Is it possible to include my remote web server path eg: m:/html/root/site1
| m:/html/root/site2 etc
....in virtual includes....
Thus eliminating the need to create duplicate INC files in each sub-domain on my remote web server host domain IP. eg: http://72.3.5.6.0 (www.site1.com; www.site2.com)
I would like to be able to use a UNIVERSAL INC file in the root of my web IP for the benefit of all my sub domains.
View Replies
ADVERTISEMENT
I have problem with physical path & virtual path on the server.
<!--#include virtual="country/inc.bottom.asp"-->
In this script it is working.
In all the file i have <!--#include file="../ar-inc.top.asp"--> this script.
I have about 10,000 files in the website.
View Replies
View Related
My IIS server (Win2K) I created a new application, but when I #Include a file it goes to the root of the Default Web site rather than the root of the site? I tried
Response.write server.mappath("default.asp")
and got
c:inetpubwwwrootdefault.asp
I know this is IIS 101 but I cannot get it to work.
View Replies
View Related
I am getting the following error from the following code:
Server.MapPath(), ASP 0172 (0x80004005)
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
/html/objconn.asp, line 11
The code is as follows....
View Replies
View Related
How can I get the physical path of a web site from an EXE application? The Web Site is on the same server as the application.
View Replies
View Related
Please let me know how to avoid giving physical path & line number in the
error messages of web applications. Instead i would like to replace it with
general error message to the user.
View Replies
View Related
If the physical path of a page is : " e:facecgi_bindetails\_Nviews.asp "
and i want to remove "\_Nviews.asp" portion from this path ...means whenever the page refreshes,no matter what the name of the page is ....the last portion of the name of the page with slash must skip out from this path string .....how can i do this while using VBscript Functions.....like using Split(),RIGHT(),LEN(),LEFT()...etc..
View Replies
View Related
May i get the physical path of any page hosted on other server?
View Replies
View Related
I have a Physical path that I need to convert on the FLY I thought using Replace would be a good idea, and it almost works
function MapURL(path)
dim url2
'Convert a physical file path to a URL for hypertext links.
url2 = (path)
MapURL = Replace(url2, "", "/")
MapURL = Replace (url2,"E:","http://myscs/docLibraryDocs")
MapURL = Replace (url2, "IntranetLibrary", "")
end function %>
- Is it possible to have multiple replace on the same variable ?
- am I doing it the right way ? or is it possible to concatenate those replace in one go ?
Is there a limit on how many Replace one can use for one variable ?
The problem I have is that it takes the first two Replace in consideration but not the third one. If I remove or comment the second one then the First and the third one works fine. For some reason, it doesn't like to have the three in the same time.
by the way, the link I try to change is as follow: Code:
View Replies
View Related
how to put the virtual path in asp
for example
myFSO.CreateFolder("..myNewFolder" & fldr_name)
when i gave this path i am getting error saying "no path found" even though the path is correct.
View Replies
View Related
I have a problem with my login code. Is my virtual path address right? wr6077-02 is my pc name.
Otherwise, does anyone know where I can get a nice simple login bit of code? I havn't much interest in learning as i am building a website for my company and hope to never have to again! Code:
View Replies
View Related
I have a web project that has multiple directories. Some of the files in
different directories use the same include files. The problem is that these
include files also reference an image folder. I am trying to create an
absolute reference to these images so I don't have to make the same include
for different directories. What is the best way to do this?
View Replies
View Related
I have searched through the threads relating to FileExists, and have not found an answer (I did find one that dealt with using the FileExists method on a remote server, but that's not quite what I need to do.)
The script searches for all pictures in a particular folder on the server. The current script uses m:... as the path. The site will be transferred to a new host, and onto a shared server (so no more m:).
Here's the original snippet: .....
View Replies
View Related
Firstly, I know where the problem is, I just need to know how to fix it. Basically, when I set up my IIS I created a virtual directory called cs305-31Kosy, which held all my files(eg kosy.mdb). The physical path is to the files on my PC is: C:Documents and Settings
View Replies
View Related
I have a virtual path setup in order to give my web server access
to a file on my app server. I am using the file system object to check
for the existance of the file and if it exists, it has to validate the
file date.
The problem is I can't seem to find the file. I can successfully check
for the existance of a file on the web server, but once I enter the
virtual path it can't find anything. All three of these calls return
false...
fso.FileExists("http://server/localfolder/virtualfolder/test.txt")
fso.FileExists("/localfolder/virtualfolder/test.txt")
fso.FileExists(Server.MapPath("/localfolder/virtualfolder/test.txt"))
However these two calls work, so I assume I am referencing the file
correctly...
Response.Redirect "http://server/localfolder/virtualfolder/test.txt"
Response.Redirect "/localfolder/virtualfolder/test.txt"
Am I doing something wrong here? The virtual path is setup with an id
that has full access to the folder.
View Replies
View Related
Config:
IIS 6 Windows 2003
Site_A
Site_B
Scenario:
I need a virtual directory in Site_B to serve the files in Site_A (without redirecting the request) so I just added for example Site_B/A as a vdir, and set it's home dir to the physical root of Site_A (eg. C:inetpubwwwrootSite_A) sounds simple enough... not for long:
Problem (nb. I tend to use forward slashes as web/iis paths and backslash as windows filesystem paths):
The include files in Site_A reside in: Site_Aincludes and the include statements in the ASP code seem to be absolute virtual paths (if such a thing exists) for example: <!--#include virtual="/includes/header.asp"--> Code:
View Replies
View Related
I'm using Crystal Reports 8.0 and Asp. When i try to see my reports it show me an error "Physical Databse Not Found". Whether u run the repprt on server or on clent.
View Replies
View Related
I was wondering if there was a way to get the root URL of the virtual
directory where an ASP file is called from. For example if there's a virtual
directory pointing to http://server/myvirtdir, and an asp file is located in
http://server/myvirtdir/subdir/anothersubdir/file.asp, is there a method
that returns http://server/myvirtdir
View Replies
View Related
I want to put my existing review books webpage in Asp/Database because I have more than 5000 of them and its now too complicated to keep tracks of it all in HTML only. My database is ready, I know how to connect to it, how to list records and how to select in them, I know how to pass a variable from a page to another, I know how to add, modify and delete records... yeah its about that so far.
Here is how I want my website to look like. I want to have physical pages categories, like all the science fiction books should be listed in sf pages separated alphabetically Ex reviews of Lord of the ring will be in sciencefictionT.asp and so on for each categories. I want too that a page with all the reviews listed linking to the right place. In my database I have already categories for each books.So is it possible to do or I complicate my life too much?
I know that it would be much more easier just to make a review.asp and have the review one at the time there, but I like the way my website is already is, that make it different from others.
View Replies
View Related
Is there a way to INCLUDE a file BELOW the web root directory?
View Replies
View Related
How do I setup perrmissions in my FTP to allow anonymous access where you can only upload to and download from a separate folder but not create sub folders or change any permissions etc.
I have my trusted users with extended permission in like c:ftproot ame1, c:ftproot ame2 etc and would like to have my anonymous access directed to something like c:anonymous. I do not want them to see the trusted accounts. Can I and how do I do that?
View Replies
View Related
Is there a way to use the include statement to access a file BELOW my wwwroot directory?
for instance, I'm using this:
<!--#include virtual="/includes/SearchParam.asp" -->
this is basically accessing D:UsersSite2wwwrootincludesSearchParam.asp
I want to put my include files in D:UsersSite2Includes for security reasons but i can't figure out how to access them.
View Replies
View Related
how do u get somthing from the root directory no matter where abouts you are? say i'm in /folder1/bla/test/foler2 and i wanted to place an image on this page but i don't want to have to backtrack ( ../../../../ ) all the way to get there. is there a peice of code that can go straight to the root directory?
View Replies
View Related
I've setup several FTP shares on IIS 5, where some of the shares are
located on another computer, while other directories are on the local
computer.
Is there a function similar to server.mappath that I can use to return
the physical path of a FTP virtual directory using ASP?
For example, I have a virtual directory called TestA located at
C:TestA on the local computer running IIS 5. I have another virtual
directory called TestB located at DevserverTestB where Devserver is
another machine on the network.
In my ASP code, I need to be able to access the physical directories
directly and I would like to avoid having additional code to deal with
hard coded directory paths.
Is there something similar to the command server.mappath("TestB") which
would return "DevserverTestB"? This way, the physical path is
transparent and I can treat local and network shares in the same way.
View Replies
View Related
my isp has created a directory with read/write access above the domain root. I asked them to do this to make it safer. I have used 'freeasp upload' to create an upload page (which works) but now I can't access the image files in this new directory. How do you guys deal with uploading images in a CMS admin and then retrieving them on the public site?
View Replies
View Related
Using IIS I want to embed a TIFF file in my web/intranet page that is stored in a folder that is not accessible to everyone. The files are strictly private in nature and only the requested TIFF file may be shown. They are in a folder that is used by another application and it can’t be moved. Code:
View Replies
View Related
I have a situation which i am sure has arisen previously. But for the life of me i cant figure out how to get this to work.
I have a directory setup like this:
Site1 - www.site1.com
Asp -
Images -
Site2 - www.site2.com
Asp -
Images -
The problem that i am having is i cant get site 2 to display images from site 1 using the virtual path '../' as this only takes you to the root of site 2 and wont let me out of it.
I have tried to use the full path of http://www.site1.com/Images but this seems to take an a really long time to load the images.
Is it possible to go outside of this root directory using some kind of trick? I dont want to copy the images accross to site 2 either as there are actually hundreds of sites that will be referencing site1's image folder and it is updated regularly.
I was thinking of putting a virtual directory in site1 thatpointed to the image folder in site2 but i couldnt get that to work.
View Replies
View Related
I have the standard folder structure on my web server (sya that the server is estserver):
My site is in c:Inetpubwwwrootmysite
I have also introduced the folders:
c:Inetpubimagerootcompany1
c:Inetpubimagerootcompany2
c:Inetpubimagerootcompany3
The idea is security (the companyN folders store images belonging to the companies 1,2,3 - and never the twain shall meet - this does not matter so much). The images are stored above MySite (in the imageroot folder) so that no-one can see them - if they sat in mysiteimages, for example, anyone can see them. And to further thre security, /imageroot does not have a URL
What I need is someway that I can display an image in imageroot on a page in MySite, eg /mysite/gallery.
I need to use an absolute path from my page in mysite to the required image
so in HTML that would be
<IMG SRC=" estserverinetpubimagerootcompany1picture.gi f">
however, that don't work. So how do you do it?
View Replies
View Related
Can I implement session without global.asa file in my root directory....and is there any good site for sessions tutorial.
View Replies
View Related
I have defined a virtual directory and application called Test. The directory is C:inetpubwwwrootTest. I created a trivial page:
<%
response.write Server.Mappath("/")
%>
When I execute this page I get:
C:inetpubwwwroot
but I was expecting to see:
C:inetpubwwwroot est
Isn't the root of my virtual directory "test"?
View Replies
View Related
I have an Intranet site sitting on an Windows XP server, which has IIS 6.0 installed. This Intranet site contains a virtual directory (VD), which sits on a second server and has Windows 2000 installed.
To test how a virtual directory would work for this particular Intranet site, I had previously set up the VD on the web server. Everything worked well...no errors.
Once testing was complete and the location of the VD changed to the second server, I have been receiving the following error:
Microsoft VBScript runtime error '800a004c'
Path not found
I understand what this error is saying, but I was wondering if anyone knows of any problems between IIS 6 being on a XP server and the VD on a 2000 server and any possible implications.
View Replies
View Related
Is there a way in asp to create a new default web site within IIS
I am setting a content managament system and want to create a new default web site during on of the processes.
So for example if people create a new site within the admin section and call it Jacinto this will create a new virtual directory called Jacinto.
This would then be accessed at http://localhost/jacinto
View Replies
View Related
Here are a couple of links that describe how to create a virtual directory programmatically on IIS.
http://support.microsoft.com/defaul...kb;EN-US;188954
http://www.vbrad.com/pf.asp?p=sourc...ate_iis_dir.htm
I haven't had a close look at the code yet but it's not in asp/vbscript
Has anybody done it in pure asp.I would like to do it on a site hosted by a third party and I am unable to install any dll's or exe's on the machine because it is a shared webserver.Both .NET and Non .NET would be good
View Replies
View Related