Connecting Tech Pros Worldwide Forums | Help | Site Map

Web space issue or not

Claus Mygind's Avatar
Familiar Sight
 
Join Date: Mar 2008
Posts: 173
#1: Dec 12 '08
I am trying to setup another web server. It is running apache 2.2.10 on
an XP Professional OS platform with dBase 2.6.1.3 build 2059 BDE 5.2.0.2

On some of my server side apps, I read the content of a directory and list
the content on a response page so the user can click on a link and view the
document on the screen.

The server side app executes the following commands to read the directory (this is actually dBase Code but please read on. The array.dir( ) is a built in method of the dBase array class):

Expand|Select|Wrap|Line Numbers
  1. cDir = "y:\"+subStr(wkKey,1,2)+"000\"+cSearch+"\"
  2. wkKey = cSearch + "*.pdf"
  3.  
  4. aTemporary = new array()
  5. nArraySize = aTemporary.dir(cDir + wkKey)
  6.  
The actual string would look something like this:

nArraySize=aTemporary.dir("y:\27000\27094\27094*.p df")

I currently have 2 working servers; a production and a test server and they both
run this app and see the files located there. The new server cannot see
these files. However dBase installed on the computer can run the lines
above in the command window and retrive the information.

Also When I copied the data from the y: to the local c: drive of the server,
it was able to read the information in the web app.

The y: drive is a standard xp mapping to another computer that has a shared
folder.

So my thinking is I am overlooking something in the apache server rights /
web space or something else. Any suggestions would be helpful.

Claus

Claus Mygind's Avatar
Familiar Sight
 
Join Date: Mar 2008
Posts: 173
#2: Dec 12 '08

re: Web space issue or not


I don't know why, but the problem disappeared when I start the Apache server from console instead of running it as a service.

With regards to me copying the data to the local c drive. I found that when running it as a service I still had a problem after recreating a similar directory structure as was on the other computer ie: c:\archive was mapped as x:
Reply