Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    1
    Member #
    8924
    I need to load a file onto one of my web pages. The jpeg file is out of the site root folder, I mean you need to go back from the root folder to directory c:/somefile.jpg to load it while the root is on c;/..../root

    The classical method does not work
    like ../../somefile.jpg
    or absolute path like http://www.somesite.com/somefile.jpg

    Can anyone help me?

    Thanks

  2.  

  3. #2
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    Does/can the server access directories outside its root tree? One thing to try is to type in the full absolute path (like C:/somefile.jpg) and see what that does.

    I doubt it would work though...
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.

  4. #3
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Location
    Norway
    Posts
    1,944
    Member #
    2096
    Yes, a script engine can access files outside the root tree of your site.

    I.e, if you have files you want to include in a script, or files you want to protect outside URL-referance, you can present access through script.

    The server itself, can not present files outside the web-root, however your script can retrieve them, and 'serve' them to the server!
    S. Rosland


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:17 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com