About Harbour and the Web

Issues and Discussions related to Harbour

Moderator: Rathinagiri

Post Reply
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

About Harbour and the Web

Post by Roberto Lopez »

Hi All,

As you surely know, I've was experimenting with Harbour web apps, and most of the work was done using Harbour uhttpd web server.

This is the last version:

viewtopic.php?f=2&t=3256

It performs very well, excepting when you need some non-standard library be used on .hrb modules.

I had no solution for that, until I've found an interesting document from Alexander Kresin:

http://www.kresin.ru/en/hrbfaq_3.html#Doc6

The most important thing there for us, is the following:
It is needed to ensure that the application has been built with all of the functions which can be called from .hrb, otherwise the program might fall out while runtime. The best way is to put in your program

REQUEST <имя_функции>
You can #include "hbextern.ch" - it contains the REQUEST's to all Harbour functions. The size of the program will, of course, increase at the end, but you will have a guarantee that all functions are enabled.
Meaning...

That uhttpd must be rebuilt with all libraries that you plan to use in your .hrb modules.

Solving this problem,uhttpd could be (must to be tested) a good option over CGI again, because:

1. uhttpd can be compiled on Linux to create a true Linux executable, then you can run it on any virtual server (in the case that you do not be able (or want) to host the server 'in-house').

2. .hrb modules are portable across operating systems, so, you could compile and test on windows and when ready, simply copy the .hrb modules to a Linux server.

I'll try to find some spare time in the next days to make tests regarding this, moreover, if someone is interested and do some testing, please, let me know your results.

Stay tuned...
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: About Harbour and the Web

Post by Rathinagiri »

That, really is a mile stone Roberto. So, we can use sqlite/mysql also as the database source. I am eagerly waiting for the improvements.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: About Harbour and the Web

Post by serge_girard »

Roberto,

I'm willing to help testing. Just let me know !

Serge
There's nothing you can do that can't be done...
gvaronas
Posts: 109
Joined: Wed Aug 06, 2008 5:21 pm

Re: About Harbour and the Web

Post by gvaronas »

serge_girard wrote:Roberto,

I'm willing to help testing. Just let me know !

Serge
+1

BestRegards
GVS
Post Reply