FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH as web application ?
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
FWH as web application ?
Posted: Fri Jun 05, 2009 03:19 PM

Hello FWH-users,

Is there a possibility to use a FWH-application as a web application ? And if so, how ?

That question I got today from one of my costumers. He wants to make it possible that his clients can connect to his system to be able to check the clients data, of course well protected.

Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: FWH as web application ?
Posted: Fri Jun 05, 2009 05:59 PM

Dear Driessen:
I Think you can do this if you use TMySql+MySql+xHarbour. Look for TMySql in this forum.
As well, you can read this blog: http://wmormar.blogspot.com (It is Spanish)
Regards.

Francisco.

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
Re: FWH as web application ?
Posted: Sat Jun 06, 2009 11:21 AM

I'm doing this for quite a while:

I use the html.lib from contrib.lib of xharbour.org
I build a normal xHB-exe with this lib and put it in \cgi-bin on the server.

If this is what you are looking for and you need more information, let me know.

Regards,
Dietmar

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: FWH as web application ?
Posted: Sat Jun 06, 2009 11:31 AM

Mr. Dietmar,

I am interested in this subject and would like to know more about this. What is the advantage of linking xHarbour html.lib file ?
Do you mean that any Web application can access functions written in xHarbour on the web server.

Regards

Anser

Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
Re: FWH as web application ?
Posted: Sat Jun 06, 2009 11:57 AM

Do you mean that any Web application can access functions written in xHarbour on the web server.

Yes, we provide acess to a DBF-database on the webserver to business-partners on our homepage:
See: http://www.rida.at / Partner / Login (on the right side): if you click "jetzt einloggen" a xBH-application is started (pdfverlage.exe).
We didn't work much on the design, but we are very satisfied with the speed of this solution.

Dietmar

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: FWH as web application ?
Posted: Sat Jun 06, 2009 12:27 PM

Dear Mr.Dietmar,

Thanks for the info. I visited your web site and it's really wonderful to see our FWH app running on a webserver. Just out of curiosity, can I ask you one more question. Till now I have not done anything on the web, it may be a very stupid question and I don't know much about CGI scripts

1.) What about the interface ie the username and password (SAY and GET) found on the webpage. Do you make it on FWH/xHarbour PRG using the HTML tags inside the PRG or is it a simple webpage .html file seperate from the PRG and the values entered in the GETS are somehow send as parameter to the FWH application and there it is processed and the result is send back to the web page.

Regards

Anser

Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
Re: FWH as web application ?
Posted: Sat Jun 06, 2009 12:46 PM
You cannot use gets, it is a FORM in Html, but the syntax is similar to xHB and FWH, which make it pretty easy...
This is the code of the page you have seen:

Code (fw): Select all Collapse
PROCEDURE getUser( oCgi )
LOCAL RIHtml
LOCAL oForm, oUser, oPass,oSub

DEFINE CGI; //HTML; //CGI ;
       TITLE "Verlagsanmeldung" ;
       OF RIHtml

RIHtml:Setcenter( .T. )
RIHtml:SetFont("Verdana",,,,2)
RIHtml:write("<br><br>")

DEFINE FORM oForm NAME "UserForm" ;
       FRAME;
       COLOR "WHITE" ;
       CAPTION " RIDA PDF-Verwaltung: Verlags-Login" ;
       CAPFONTCOLOR "white" ;
       WIDTH 35 ;
       ACTION "/cgi-bin/pdfverlage.exe?VALIDATE"  

LINE BREAK IN oForm

SPACE 10 IN oForm
TEXT '<font face="Verdana"' + 'size="2"' +  'color="black">Benutzername:</font>' IN oForm

LINE BREAK IN oForm
SPACE 9 IN oForm
DEFINE EDIT oUser NAME "UserName" ;
       VALUE "" ;
       MAXCHARS 40 ;
       IN oForm


LINE BREAK IN oForm
SPACE 10 IN oForm
TEXT '<font face="Verdana"' + 'size="2"' +  'color="black">Passwort:</font>' IN oForm

LINE BREAK IN oForm
SPACE 9 IN oForm
DEFINE PASSWORD oPass NAME "UserPass" ;
       VALUE "" ;
       MAXCHARS 40 ;
       IN oForm

LINE BREAK IN oForm
LINE BREAK IN oForm

SPACE 9 IN oForm
DEFINE SUBMIT oSub NAME "cSubmit" VALUE "    Login    " IN oForm

ACTIVATE oForm

END FONT OF RIHtml

RIHtml:CGIClose()

RETURN


Regards,
Dietmar
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: FWH as web application ?
Posted: Sat Jun 06, 2009 04:57 PM

Mr. Dietmar:

It's very very interesting.

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: FWH as web application ?
Posted: Sat Jun 06, 2009 08:52 PM

Dietmar,

It looks indeed very good the way you do it.

Let me tell you what I want to do :

My application is a total solution for laywer offices. My customer wants their customer to be able to log in to check his dossiers. This means financial situation, calendar, letters, and so on.

This means that I need to show a listbox or a sort of browse in which the data can be shown.

Any idea ?

Thanks a lot for your efforts.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
Re: FWH as web application ?
Posted: Sun Jun 07, 2009 01:35 PM

Michel,

I think in this situation your customer could provide a VPN (Vitual Private Network)-connection to his clients,
Citrix might work as well. But I have no (active) experience with both of them.

For a real web-application like the onie in our website you have to put the database on the web-server.

Regards,
Dietmar

Posts: 18
Joined: Fri Oct 14, 2005 05:15 PM
Re: FWH as web application ?
Posted: Sun Jun 07, 2009 04:34 PM

Hello Dietmar,

i also interested in a web solution.
I can not find the lib-files on xharbour.org
Where can i download them?

Regards,
Thomas

Posts: 357
Joined: Thu Nov 02, 2006 06:53 PM
Re: FWH as web application ?
Posted: Sun Jun 07, 2009 05:31 PM

does it work with IIS (server microsoft) ?

best regards
kajot

best regards

kajot
Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
Re: FWH as web application ?
Posted: Thu Jun 11, 2009 04:28 PM
Thomas Grueninger wrote:Hello Dietmar,

i also interested in a web solution.
I can not find the lib-files on xharbour.org
Where can i download them?


It used to be part of the contrib-lib three years ago and they still tell so on their homepage.
I don't know why they removed it - please ask them, there seem to be more people interested in the lib.
If it is not available any more I can send it to you.
Regards,
Dietmar
Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
Re: FWH as web application ?
Posted: Thu Jun 11, 2009 04:28 PM
kajot wrote:does it work with IIS (server microsoft) ?

best regards
kajot


yes!
Posts: 208
Joined: Wed Dec 03, 2008 04:48 PM
Re: FWH as web application ?
Posted: Wed Jul 29, 2009 11:52 AM

Hello Dietmar,
Can you send this Web access LIB to me also, please?

bpekic@gmail.com

Thank you