Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: path question

From: SunandaDH::aol::com at: 7-Aug-2005 17:06

> Can someone shed some light?
Your email was a little difficult to decode as it was afflicted with numbered codes. I hope I've read it right. If your folder structure is: root |--cgi-bin |--httpdocs Then this should work: filename: rejoin [ %../httpdocs/ destpage ".html" ] either exists? filename [ print "have it" ][ print ["couldn't find " file-name clean-path file-name] ] If it doesn't, the clean-path part should help you see exactly where it is looking. A possible problem is that you are looking outside the sandbox.....Have you got -cs in the shebang line? eg: #! ........./rebol/rebol.exe -cs Possibly irrelevant, but if destpage is a value supplied by a user, then do make sure it is safe. A hacker could attempt to get you to display a file you weren't expecting by typing something like Sunanda.