SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Feb 4, 2007, 06:06 #1
- Join Date
- Mar 2005
- Location
- Orange County, CA, Unites States
- Posts
- 95
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I need to make a page things it's in another directory
I'm not sure if this is possible. I've searched around and I couldn't find and answer to my question.
I have a website... let's say it's:
http://www.mysite.com
On my website I have a page:
http://www.mysite.com/default.asp
Now... I need that page to "think" it is actually:
http://www.mysite.com/directory1/default.asp
I'm running some software in "/directory1/" and I need to grab some of that information and put it into the root of my website. The problem is, the software has a license and it will only allow me to call from this application within the directory1 folder.
So... my question... can I use vbscript to make http://www.mysite.com/default.asp think it is actually http://www.mysite.com/directory1/default.asp?
Inside of my current default.asp page on the root of my server I have the following code:
<!--#include file="directory1/default.asp" -->
And that's it. Would I be able to add some code above that line to make the server think the url is really in the directory1 folder? If not... what work around ideas can/should I check into?
-
Feb 5, 2007, 18:10 #2
- Join Date
- Jul 2006
- Location
- South Dakota
- Posts
- 77
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Have you thought about putting another file in your directory1/ folder that includes the file you need, then in your webroot include your new file. I haven't tried this, but it's certainly an idea.
What kind of software is it that won't allow you to put it elsewhere on your server? Does the software check where it is and deny access if the file calling it is not in the same directory? Basically, what other information can you provide?TDDJournal: An Experiment in Test Driven Development.
-
Feb 6, 2007, 05:01 #3
- Join Date
- Mar 2005
- Location
- Orange County, CA, Unites States
- Posts
- 95
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yea... I've tried putting includes in includes but it doesn't work.
The software uses a DLL to verify with the developers site that the software is installed on a valid server. It's a PITA... let me tell you.
Right now I've been playing around with ASPTear but I'm having trouble getting cookies to work with it.
-
Feb 6, 2007, 05:31 #4
softlink webroot to directory1
hope for the besti make it rain on them hoes
Bookmarks