[español]
Estos programas, son módulos que se agregan al server apache.
Es un sustituto de php que te permite trabajar el back-end en tu lenguaje conocido y favorito.
Ello te permite que cada request que termina en .prg o .hrb sea interpretado por harbour, igual que los que terminan en .php son interpretados por php
En el cliente no cambia nada, usas tu firefox o chrome como siempre ya que las paginas son html/css/js como siempre.
Esta es una tecnología de SERVIDOR para tratar los datos, procesar las consultas y construir y devolver las páginas dinamicamente.
Ese ejemplo que puse antes es un hello world. Como puedes observar es un programa harbour normal, sólo que cada "?" va a la respuesta que recibe tu browser de internet.
Lo primero que tienes que hacer es instalar apache o xammp.
Despues te bajas la beta_4 desde
https://www.mod-harbour.com
Contiene un archivo .rar con binarios para cada sistema operativo (win/lin/mac)
También hay un pequeño texto con instrucciones acerca de donde colocar cada .dll y cada .so ( modulo apache )
Despues agregas al httpd.conf de apache las líneas alli indicadas y listo, ya puedes crear el ejemplo que te pasé y ejecutarlo!
Mas adelante colgaré muchos más ejemplos de programas para ejecutar pero si te fijas, en la pagina esa tambien hay un demo completo del HMGWEB de Roberto López (quien gentilmente me dio permiso ), convertido desde CGI+php a estos web drivers y harbour.
[english]
These programs are modules that are added to the apache server.
It is a substitute for php that allows you to work the back-end in your already known and favorite language.
This allows each request that ends in .prg or .hrb to be interpreted by harbour, just as those that end in .php are interpreted by php
Nothing changed in the client, you use your firefox or chrome as usual since the pages are html / css / js as always.
This is a SERVER technology to process data, process queries, and dynamically build and return pages.
The example I put before is a hello world.
As you can see it is a normal harbor program, only that each "?" goes to the response that internet browser receives.
The first thing you have to do is install Apache or xammp.
Then you download the beta_4 from
https://www.mod-harbour.com
It contains a .rar file with binaries for each operating system (win / lin / mac)
There is also a small text with instructions about where to put each .dll and each .so (apache module)
Then you add the lines indicated there to the httpd.conf of Apache, and that's it, you can create the example I gave you and run it!
Later I will post many more examples of programs to run but if you notice, on that page there is also a complete demo of Roberto López's HMGWEB (who kindly gave me permission), converted from CGI + php to hw_apache + harbour.
Saludos
Angel Pais