PC Review
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
Accessing data files
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
Accessing data files
![]() |
Accessing data files |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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...arent-Paths.pdf HTH -- Chris Leeds, Microsoft MVP-FrontPage If you make web sites for other people, you should check out ContentSeed: http://contentseed.com/ -- "Lawood" <Lawood@discussions.microsoft.com> wrote in message news:E0D4BBB9-15A8-43E8-9BCF-C298566771A5@microsoft.com... >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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 "Chris Leeds, MVP-FrontPage" wrote: > 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...arent-Paths.pdf > > HTH > > -- > Chris Leeds, > Microsoft MVP-FrontPage > > If you make web sites for other people, you should check out ContentSeed: > http://contentseed.com/ > -- > "Lawood" <Lawood@discussions.microsoft.com> wrote in message > news:E0D4BBB9-15A8-43E8-9BCF-C298566771A5@microsoft.com... > >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 > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

