Linking To Images Outside Of The Root Directory

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


ADVERTISEMENT

Can I Implement Session Without Global.asa File In My Root Directory....

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

How To Display Images Which Are Stored Above Site Root?

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

Display Images From Ftp Directory.

i have iis5. windows 2k advance server. I have many http sites on iis. One ftp site with folders protected with userid and password. e.g i have folders at

ftp://www.mysite.com/usa
fpt://www.mysite.com/India

i mapped these folders in virtual directory as:

http:/www.mysite.com/images

and here i have folders for usa and india.

now if i try to diplay image on asp page as
http://www.mysite.com/displayimages.asp

in displayimages.asp page i give url to images file as
http://www.mysite.com/images/usa/logo.jpg

i was asked to enter userid and password. I mean to say, How can i display images on asp pages from the users, whom have posted images to their ftp folder.

View Replies View Related

Storing Images In DB Or File Directory

I am working on a book selling website using ASP with an Access DB.
Basically i would like to have an image of each book in the DB to be displayed upon request in the website. So I guess what i would really like to know is

1. Can i store .jpg or .gif files in an Access DB?
2. Does it make sense to do this?
3. Would it be better to have some kind of pointer in the DB to a place in the file system where the image is stored? .......

View Replies View Related

Root URL

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

Include Below Web Root Dir

Is there a way to INCLUDE a file BELOW the web root directory?

View Replies View Related

Permissions In FTP Root

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

Virtual Root

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

Use Include Below Root Web Dir?

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

Source From Root

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

Acessing A File Above The Root

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

Accessing Files Not Below The Web Root

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

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 View Related

Active Directory :: The Attribute Syntax Specified To The Directory Service Is Invalid

I have written a script to update user information in the Active Directory using ADSI. Here is part of it:

Set User = GetObject("LDAP://<GUID=" & GUID & ">")

User.Department = DepartmentName

User.SetInfo

Set User = Nothing

This works fine unless DepartmentName is an empty string ("").

Then I get error 0x8007200B: "The attribute syntax specified to the directory service is invalid."
This happens with all the attributes I have tried, including TelephoneNumber
.
Do I need to delete the value of the attribute instead of setting it to an empty string? If so, how do I do it?

View Replies View Related

Odd Linking

I have a project where all the links go to an intermediary page
before being redirected to the destination page. For example,
there is a link, say to final.asp. But final.asp only redirects the user
to final_last.asp which is the actual destination.

Is there any reason for this indirection? It would seem one could save
space and make things more efficient by going directly to the actual
destination page. Did the author have a reason for doing things this
way?

View Replies View Related

Linking 2 Sep Db's

I want to display the results from 2 seprate mdb's in this manner on an asp page.

If fieldName from dbtable in A.mdb is the same as fieldName in dbtable B.mdb then display all fields. I assum this is sql, so any help woud be great..

View Replies View Related

Linking

i made a little page called billing.asp. I seen on some websites where they can do somin like ie: billing.asp?id=34 and it brings up a record. How can I do that id=34 part?

View Replies View Related

Linking

is there any way i can get a link to access a database cause am trying to make a profile page but with just 1 page for the profile to be on.

< a href="link-to-page=id-of-member"></a>

View Replies View Related

Database Linking??

I have created a form using HTML and Javascript. When I click on the submit button I need the Selected Answers to be sent to an Excel or MS-access or any database. I need to know whether this is possible using CGI/ASP. I guess ASP would be better. If not which one do you think is the best way to carry out.

View Replies View Related

Linking Page

My background is Crystal Reporting. In one of my Reports i had to create a Hyperlink which opens up a .asp FORM in which the user types in data and clicks SUBMIT, as soon as he does that it should get updated in the Oracle 9 database, i have the code for the .asp form and also for the .asp page which inserts data into the Oracle Database, My question is how to link these two .asp pages.

View Replies View Related

Linking Many Files

I am in the process of making an online examination system. The exam will have a total of 100 questions and each question has a time limit. I have done with coding of a question and setting time limit. Each question will get its question from a database table and also the 4 options.

Now my problem is that how i create 100 asp files for 100 questions??.. how can i link them so that when a user clicks submit button, he is taken to next asp file(question).. files are numbered as 1.asp,2.asp...etc. Is there any way i can create a template or something and files and links be automatically generated.

View Replies View Related

Linking ASP Pages

Now when somebody goes to the site www.mysite/allphotos.asp , it ask for the id/password and if the password is correct (as checked by another file ' password.asp' ) the user is redirected to a new page www.mysite/viewall.asp else it is redirected back to www.mysite/allphotos.asp with an error message. Now till this point all is working fine. But if somebody types in www.mysite/viewall.asp directly to their browser they would bypass the password page i have created and hence the security fails.

how can I redirect back to www.mysite/allphotos.asp if a user types in www.mysite/viewall.asp in the browser.I have tried assigning a variable (say goAhead = 0) in the password.asp file when the login is true. In the head of www.mysite/viewall.asp it checks if goAhead is not 0 it redirect back to www.mysite/viewall.asp . Now what is happening is that I can't open www.mysite/viewall.asp rightaway but even when password is correct it stll won't open and is redirecting back to allphotos.asp

View Replies View Related

Linking To An Image

Is there a way to make an image link to a field I already have in a database? Can I just simply put an html command to a link in a database in Access to an image? Or do I have to do an OLE object? I have no idea how to make an OLE object link to something.

View Replies View Related

Linking A Dll To An Asp Page

Our company has a website in place that allows users to get information. I've been asked to call a custom made dll that returns a registration number to the user. I don't know much about dlls or coding concepts for that matter (I've built pretty basic client/server asp websites only), but I would like to be able to at least ask the right questions so that I can understand just what I need to look into to do this.

Does it depend what "kind" of dll it is and what language it's written in? Do I then just need to know the arguments it takes? How do you register a dll?

View Replies View Related

Javascript Linking

I need to link to a javascript function from a REsponse.write line

I can do this but when I try to use a record (ie. rs("Product Name"))
it doesnt work. I tried something like this:

Response.Write "<a href="""" onClick=""rePopulate(''rs(""Product Name"")'');"">Product</a>"

It's this bit thats the problem I think .. I know its probably to do with quotes r smth but rePopulate(''rs(""Product Name"")'').

View Replies View Related

Linking To A Popup

... linking to a pop-up window but sending an ID to the asp page

<A HREF='javascript popUp("confirm.asp?ID=' & rs("Doc_Num") & '")'>Edit</A>

Something like that but with confirm.asp accepting an ID associated with Doc_Num

This works fine for a fixed ID but not when associated with a recordset.

I'm sure its a quotation mark here or there but im hitting a brick wall!!

View Replies View Related

Linking A Textbox

Would anyone be able to help me with this. I have a number of textboxes and checkboxes.
When a textbox contains text I want the checkbox to be unchecked. When the textbox is empty I want the checkbox to be checked.

Also, is it possible to do the reverse as well i.e. when the checkbox is unchecked the textbox cannot be empty etc.

View Replies View Related

Error Linking To UserID

I have got rs6 to display the Usernames but when i try and link the username with the userID it shows this error:

ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/viewpub.asp, line 121

set rs6 = objconn.execute ("SELECT * FROM favepub INNER JOIN members ON favepub.UserID = members.UserID WHERE PubID=" & PubID)

Pubbers: <% WHILE NOT rs6.EOF%>
<a href="viewmember.asp?UserID=<%=rs6("UserID")%>"><%=rs6("rsUser")%></a>,&nbsp;

<%rs6.MoveNext
WEND
%>

View Replies View Related

Linking ASP To Client MS Word

Basically, I want to be able to print labels and invoices (via MS Word) for net orders, using our ASP site admin system. Code:

View Replies View Related

Linking ASP To Access Database

I am trying to build a simple webpage for a college project I am required to use ASP in this project. I simply need to link my webpage to an access database to display the information on the page. I have managed to do this with all text information using the following code:

View Replies View Related

Linking Names To URLs

I have a dynamic table that displays names of companies. Some companies have URLs and some don't. I would like for those companies with URLs to open a new browser and show their website, for those with no URL just to open nothing. So far I have this, however doesn't work.

View Replies View Related

Linking To Access DB For Sorting

I'm working on getting a list of links to other forms on my database to show up in an order determined by an additional field in a database. This line right here works for this (note the bold part is what I'm editing):

Set rs = cnnSimple.Execute("SELECT * FROM [resource domain] where RESID= """ & rstSimple.Fields("RESID").value & """ ORDER BY [Links].Precedence ASC;")

But I actually don't want to sort by Precedence (that's being used for sorting another field). Instead I want to sort by another colum in the same form called BelongOrder. I try this simply by doing:

Set rs = cnnSimple.Execute("SELECT * FROM [resource domain] where RESID= """ & rstSimple.Fields("RESID").value & """ ORDER BY [Links].BelongOrder ASC;")

But I get the following error:

Microsoft JET Database Engineerror '80040e10' ....

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved