FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour error to find DBF file
Posts: 16
Joined: Mon Mar 09, 2020 04:27 PM
error to find DBF file
Posted: Mon May 04, 2020 03:07 PM

We have a service maintained by you where we upload a project using mo_harbour.

Whose link is: http://54.37.60.42/jbiloja/index.prg
But at the address: http://54.37.60.42/jbiloja/index.prg?ca-2
You should bring the contents of a DBF file, but you can't find it.

The prg used is a copy of http://54.37.60.42/modharbour_samples/d ... /data5.prg which is in the samples.

We made a change to point to another database but when trying to access the final file:

http://54.37.60.42/jbiloja/data/data-ca-2.prg shows the error:

Error: Open error
filename: /var/www/html/jbiloja/data/SUOFOR.dbf
called from: ../../apache.prg, (b) MAIN, line: 50
called from: DBUSEAREA, line: 0
called from: pcode.hrb, MAIN, line: 23
called from: HB_HRBDO, line: 0
called from: ../../apache.prg, EXECUTE, line: 116
called from: ../../apache.prg, MAIN, line: 61

The line used to trigger DBF is:

USE (hb_GetEnv ("PRGPATH") + "/SUOFOR.dbf") ALIAS "data" SHARED

On a local test server it works but when we upload the project to xbhosts, it generates the above error.
Could you help us?

Graciously,

Posts: 16
Joined: Mon Mar 09, 2020 04:27 PM
Re: error to find DBF file
Posted: Tue May 12, 2020 12:32 PM

Sorry for my lack of attention.
For those who have a similar problem in the future, the DOCs have the solution: https://github.com/FiveTechSoft/mod_har ... the-server.
I performed the suggested actions and solved the problem.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: error to find DBF file
Posted: Tue May 12, 2020 12:59 PM

Very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion