error to find DBF file

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

error to find DBF file

Postby tiagojbi » Mon May 04, 2020 3: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,
tiagojbi
 
Posts: 16
Joined: Mon Mar 09, 2020 4:27 pm

Re: error to find DBF file

Postby tiagojbi » 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.
tiagojbi
 
Posts: 16
Joined: Mon Mar 09, 2020 4:27 pm

Re: error to find DBF file

Postby Antonio Linares » Tue May 12, 2020 12:59 pm

Very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 8 guests