mod_harbour od mod_harbour + fastcgi?

358 views
Skip to first unread message

fdaniele

unread,
Jul 1, 2020, 8:55:29 AM7/1/20
to Harbour Users
hi to all

i have a little question

i am very confused, i want to begin to program in web but ...what i have to use ?

mod_harbour or mod_harbour + fastcgi?

mr Linares?  friends ?

what i have to do?

thanks

Daniele


Seth Hovestol

unread,
Jul 1, 2020, 9:10:32 AM7/1/20
to Harbour Users
That's a choice you'll have to make based on what you're making. If you're trying to host a website that will get a lot of traffic and you're starting from scratch, fastcgi will help allow you to make your site faster. That said there are some trade-offs:
1. Be very careful with using statics inside functions. Fast cgi doesn't close the program between calls, so your statics will remain, so if you're using them to cache results, make sure that they are checked for validity.
2. Fast cgi is a little more complicated because you'll be required to write a multi threaded application. 

If you're playing with hosting a website and just want to get a feel for it, I'd recommend not using fast cgi, at least until you have a feel for what you're creating. If you avoid using statics within functions then I'd add in fast cgi so you can learn how to use it. 
Ultimately it comes down to this question: What are you trying to do? 

fdaniele

unread,
Jul 1, 2020, 9:43:25 AM7/1/20
to Harbour Users
thanks for the exhaustive answer, but I don't understand if the 2 technologies are compatible, that is if I write the mod_harbour will it be (almost) good with the other technology?

moreover, they will still go on or will remain as still as ROBERTO LOPEZ's HMGScript or GIANLUCA NAPOLITANO's DBFree which are beautiful works but unfortunately forgotten.

It seems that Mr. Linares would like to continue his work but, I also understand that if there are few followers, mr. Linares could get tired.

What do I need? begin ! :-) because, as I always say, the future is web and we should migrate en masse to mod_harbour also to give satisfaction to its creator who has given so much to the clipper / harbor world.

Mr. Hovestol, you have been very kind and I am grateful to you for the explanations, and I would like your opinion again

thank you very very much to all the friends of this forum

Daniele




Domenico D'Oria

unread,
Jul 1, 2020, 2:30:17 PM7/1/20
to Harbour Users
Hi Daniele, in these days i'm modifying the big job of Roberto Lopez, with pure cgi + w3.css from w3school, all running on linux + lighttpd + harbour + hbnetio
When the prototype is working i'll share the source.

Ciao

meds...@gmail.com

unread,
Jul 1, 2020, 2:48:28 PM7/1/20
to Harbour Users
Hi Daniele:
   As most everyone here knows, I use (x)Harbour as a CGI app running under the Apache 2.2 server. I have been doing this since at least 2012. with no problems.
   As part of this process, I had to learn 'some' HTML,m CSS, and quite a bit of Javascript.

   My whosaway.com site is the simplest of my three harbour-based sites, and has almost no sophistication, and very little Javascript.

   I have 2 or 3 other sites with quite a bit of front-end work in CSS, HTML, and JS.  

   I'm current learning and using Scalar Vector Graphics (SVG) in some front-end development work. Very interesting stuff.

   My Harbour CGI app does all the 'heavy-lifting' of a CGI including building pages, accessing databases, etc, etc.

   To me, there is nothing sophisticated in my CGI or front-end work: just install the Apache Daemon on a machine you will use as a server, then slowly build a Harbour app that 'listens' and responds to requests coming in from the internet. This response is really just fixing up and sending out an HTML page to your client.

   The sophistication comes when you place Javascript code in your page that allows your client user to get/put/validate information and return it to your server.

   Good luck.

-Mel

Eric Lendvai

unread,
Jul 2, 2020, 2:16:46 AM7/2/20
to Harbour Users
Hello Daniele,

If you want another option, you can check out my repo at:

This project was created before Mr Linares added FastCGI protocol to mod_harbour.

To see a good example of how simple a web app can be can created reviewed the following at:

You may want to read an article to better understand the concept of FastCGI, regardless of which project you decide to use, go to the following link:

The mod_harbour project has a great community of developers that also create their own web framework.
The project I created is more of a foundation you can use if you want lower level control.

FYI the mod_harbour example I have under my project was an attempt to be in place replacement to mod_harbour to add FastCGI support.
I will probably remove that example and reuse some of the "on the fly" code/run concept of mod_harbour and create an IDE for the entire project.

fdaniele

unread,
Jul 2, 2020, 3:06:56 AM7/2/20
to Harbour Users
very very Thanks to all friends that have replied :-) 

@mr. Domenico, I am grateful to you for your intention to share your work !

@mr. Eric, now i study all your article and hope clear the fog in my brain  :-)

@mr. Mel ... initialy thanks for your site and your passion, but as i understand, the mod_harbour is superior to the classic cgi because it interprets 
the prg and therefore the programmer does not have to compile it and put it in the cgi-bin folder and therefore everything is much much easier

however, I understand that the mod_harbour should be a kind of DB3 that interprets and launches the script then the contribution of mr. Linares is indispensable

maybe I'm wrong or exaggerating but this is a new harbor in all respects

but the sostantial question is also ... what should we use in the medium term ? i think that only mr. Linares would reply :-)

i hope to "listen" also mr. Linares  :-).

a wonderful day of satisfaction to all

Daniele


Antonio Linares

unread,
Jul 2, 2020, 3:50:53 AM7/2/20
to Harbour Users
Dear Daniele,

We are pushing mod_harbour very much. In fact its users community is growing everyday and we are using it already for several
companies large projects, so mod_harbour is here to stay and being evolved for a long long time :-)

Our goal is to create a big community around it that will guarantee the continuity of the project. Being free and open source
it has all that is needed to become a success, same as it happened with the Harbour Project that I founded.

best regards

Antonio

fdaniele

unread,
Jul 2, 2020, 5:11:11 AM7/2/20
to Harbour Users
thanks mr. Linares, 

I will join the mod_harbour group and hope to become a prominent element

you are our saint !!
before you gave us harbor and now mod_harbour

thanks 1,000 from everyone

 

fdaniele

unread,
Jul 2, 2020, 5:18:46 AM7/2/20
to Harbour Users

another little little question

as I said, I am very confused

which is the mod_farbour site to follow? because I found more than one.
and what is the forum to follow?

thanks again to all the friends of this forum

Daniele

Antonio Linares

unread,
Jul 3, 2020, 2:45:37 AM7/3/20
to Harbour Users

fdaniele

unread,
Jul 3, 2020, 3:12:39 AM7/3/20
to Harbour Users

Thanks mr. Linares

Thanks to all friends

Daniele


Sergio Luengo

unread,
Jul 4, 2020, 9:29:34 AM7/4/20
to harbou...@googlegroups.com

Colegas.

 

Cual es el grupo para mod_harbour.?

 

Y en que pagina esta toda la info para poder estudiarla.

 

Muchas gracias.

Sergio

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/d280ea65-3eec-4601-ab9f-dbfeceffd5ebo%40googlegroups.com.

Guillermo Varona Silupú

unread,
Jul 4, 2020, 9:33:12 AM7/4/20
to harbou...@googlegroups.com

fdaniele

unread,
Jul 4, 2020, 3:40:52 PM7/4/20
to Harbour Users


Thanks mr. Gvar, Very kindly 

CIAO CAMPAGNA !!!!!


Sergio Luengo

unread,
Jul 4, 2020, 5:43:55 PM7/4/20
to harbou...@googlegroups.com


Thank you very much. Very friendly

 

Sergio

Reply all
Reply to author
Forward
0 new messages