navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

physical path to folder

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Server Issues >> physical path to folder
Page: [1]
 
walrus

 

Posts: 547
Joined: 3/13/2003
From: London
Status: offline

 
physical path to folder - 8/27/2006 16:42:21   
I have several sites all hosted on the same server and they all link to a database on one of the sites using a physical connection

something like...
Application("thedata_ConnectionString") = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=F:/secure/m/mywebsite.co.og/fpdb/database.mdb"

I also display image files from another folder in the root of "mywebsite"

At the moment I use a url link
src='http://mywebsite.co.og/imagefiles/

Can I make a direct path to this folder.
If I try
src='F:/secure/m/mywebsite.co.og/imagefiles/'
I get
file:///F:/secure/m/mywebsite.co.og/imagefiles/


I am using FP2003 on a windows server


_____________________________

I hope The Boss isn't reading this, ...she thinks I program everything!
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: physical path to folder - 8/28/2006 9:28:56   
If it's an ASP page, you may be able to use the server.mappath command. Something like this:

<%=Server.Mappath("/images/myfile.jpg")%>

should give you the physical path to that file.

Or maybe I'm waaaay off and you just need to change the link from an absolute to a realtive one:


src='/imagefiles/myfile.jpg'

vs.

src='http://mywebsite.co.og/imagefiles/myfile.jpg'

Those any help?

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to walrus)
walrus

 

Posts: 547
Joined: 3/13/2003
From: London
Status: offline

 
RE: physical path to folder - 8/28/2006 13:56:38   
No, I'll try to explain the problem differently

a page (asp) on domain website1.com
needs to display an image from domain website2.com

I know the physical path to both files and folders

I just can't get the image to display.
This is the problem
file:///F:/etc...

I don't want to use src=http:// (which works fine) as this would defeat the object. If this can't be done, then so be it.

_____________________________

I hope The Boss isn't reading this, ...she thinks I program everything!

(in reply to rdouglass)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: physical path to folder - 8/28/2006 16:11:00   
quote:

If this can't be done, then so be it.


I don't believe it can unless both sites use the same directory in a Virtual Directory configuration.

I've never tried that but in theory, it should work. Take a directory and "attach" it to both webs using a Virtual Directory setting. Then they could use the 'common' image.

Maybe?

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to walrus)
walrus

 

Posts: 547
Joined: 3/13/2003
From: London
Status: offline

 
RE: physical path to folder - 8/28/2006 16:31:09   
okay, I'll see if my host will set up a virtual directory for me.

Thanks

_____________________________

I hope The Boss isn't reading this, ...she thinks I program everything!

(in reply to rdouglass)
walrus

 

Posts: 547
Joined: 3/13/2003
From: London
Status: offline

 
RE: physical path to folder - 8/30/2006 10:38:14   
My host has set up a Virtual Directory on the server.

This seems to be the best solution.

Thanks

_____________________________

I hope The Boss isn't reading this, ...she thinks I program everything!

(in reply to rdouglass)
Page:   [1]

All Forums >> Web Development >> Server Issues >> physical path to folder
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts