Accessing data files

L

Lawood

I wrote some cgi code for a UNIX system and was able to acces my data files
just fine. This code was then uploaded via Front Page to a windows system.
When executed a File Not Found was received. Contacted there support and they
gave me a way to receive the data. The problem is what they gave me was
absolute addressing. I would like to do this relatively. What they gave me
looks like this.
$db = "E:\\xxxxxx\\mysite\\www\\cgi-bin\\Data\\Text.dat";
Initially I had. $db = "Data/Text.dat". This worked on my Unix server.
Does anybody know of way to make this relative. Absolute is bad if they
decide to move the data to another location.
Thanks in advance
Lawood
 
C

Chris Leeds, MVP-FrontPage

when you were using the "relative" path, was it like "../../data/text.dat"?
if so the problem most likely is that the host has disallowed parent paths.
this is the "out of the box" state for Windows server 2003.

Here's how to make it not act that way:
http://contentseed.com/Docs/Windows-Enable-Parent-Paths.pdf

HTH

--
Chris Leeds,
Microsoft MVP-FrontPage

If you make web sites for other people, you should check out ContentSeed:
http://contentseed.com/
 
L

Lawood

Maybe thats the problem. I used $db = "Data/Text.dat" whereas maybe it should
be
$db = "../../Data/Text.dat". I was doing this from the cgi-bin folder.

Leonard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top