FWH as web application ?

User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

FWH as web application ?

Post by driessen »

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. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
FranciscoA
Posts: 1964
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: FWH as web application ?

Post by FranciscoA »

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.

Fwxh1204-MySql-TMySql
User avatar
Dietmar Jahnel
Posts: 83
Joined: Mon Oct 17, 2005 10:33 am
Location: Austria
Contact:

Re: FWH as web application ?

Post by Dietmar Jahnel »

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
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: FWH as web application ?

Post by anserkk »

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
User avatar
Dietmar Jahnel
Posts: 83
Joined: Mon Oct 17, 2005 10:33 am
Location: Austria
Contact:

Re: FWH as web application ?

Post by Dietmar Jahnel »

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
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: FWH as web application ?

Post by anserkk »

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
User avatar
Dietmar Jahnel
Posts: 83
Joined: Mon Oct 17, 2005 10:33 am
Location: Austria
Contact:

Re: FWH as web application ?

Post by Dietmar Jahnel »

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: Select all

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
User avatar
Armando
Posts: 2479
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México
Contact:

Re: FWH as web application ?

Post by Armando »

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
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: FWH as web application ?

Post by driessen »

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. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
Dietmar Jahnel
Posts: 83
Joined: Mon Oct 17, 2005 10:33 am
Location: Austria
Contact:

Re: FWH as web application ?

Post by Dietmar Jahnel »

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
User avatar
Thomas Grueninger
Posts: 18
Joined: Fri Oct 14, 2005 5:15 pm
Location: Germany

Re: FWH as web application ?

Post by Thomas Grueninger »

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
User avatar
kajot
Posts: 309
Joined: Thu Nov 02, 2006 6:53 pm
Location: Poland

Re: FWH as web application ?

Post by kajot »

does it work with IIS (server microsoft) ?

best regards
kajot
best regards
kajot
User avatar
Dietmar Jahnel
Posts: 83
Joined: Mon Oct 17, 2005 10:33 am
Location: Austria
Contact:

Re: FWH as web application ?

Post by Dietmar Jahnel »

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
User avatar
Dietmar Jahnel
Posts: 83
Joined: Mon Oct 17, 2005 10:33 am
Location: Austria
Contact:

Re: FWH as web application ?

Post by Dietmar Jahnel »

kajot wrote:does it work with IIS (server microsoft) ?

best regards
kajot
yes!
User avatar
codemaker
Posts: 208
Joined: Wed Dec 03, 2008 4:48 pm
Location: Belgrade, Serbia

Re: FWH as web application ?

Post by codemaker »

Hello Dietmar,
Can you send this Web access LIB to me also, please?
bpekic@gmail.com

Thank you
Post Reply