SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    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?

  2. #2
    SitePoint Enthusiast
    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.

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Location
    Orange County, CA, Unites States
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by teddarling View Post
    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?
    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.

  4. #4
    SitePoint Enthusiast tuxidomasx's Avatar
    Join Date
    Feb 2007
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    softlink webroot to directory1

    hope for the best
    i make it rain on them hoes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •