FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HIX - Harbour web server
Posts: 1109
Joined: Fri Oct 28, 2005 02:27 AM

Re: HIX - Harbour web server

Posted: Sat Aug 22, 2026 07:55 PM

I just noticed that now there is hix ver 2.00.03 and it's not backward compatible with hix ver 1.x

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1297
Joined: Fri Feb 10, 2006 02:34 PM

Re: HIX - Harbour web server

Posted: Mon Aug 24, 2026 07:00 AM

Hua,

Four months ago, I ran an exhaustive AI test to check the consistency of HIX vs. 1.0, and I was astounded by the number of shortcomings it had. As many of you know, HIX was based on the Mindaguas server, and I kept evolving it. The system kept evolving, but all these shortcomings were impossible to fix on the old server; it was an architectural problem that couldn't be resolved.

It was at this point that I decided to refactor the entire server from scratch, with a modern architecture that would adapt to most situations. The system is on GitHub; all the source code is ready to compile, and anyone can add their own libraries if needed: ads, MySQL, etc.

https://github.com/carles9000/hix

The flow is the same, but better structured and more consistent. If you've used the older version of Hix, it's even easier to use.

1 Create Route /routes/web.json

Code (php): Select all Collapse
{ "name": "hello", "url": "/hello", "action": "controllers/hello.prg", "method": "GET" }

2 Create Controller /controllers/hello.prg

Code (php): Select all Collapse
FUNCTION Main()

   LOCAL hMyData := { 'name' => 'Hal', ;
                      'now'  => dtoc(date()) + ' ' + time() }

RETURN UView( 'hello.html', hMyData )

3 Create View /views/hello.html

Code (php): Select all Collapse
@args hData := {=>}

<html>
   <h1>Hi {{ hData[ 'name' ] }}...</h1>
   <hr>
   <small>Request at {{ hData[ 'now' ] }}</small>
</html>

You can see how it works here https://hi.hixbase.net/

This same example is also available in the repository -> https://github.com/carles9000/hix/tree/main/examples/web/hi

All these changes are the reason why the two versions could not be compatible, i hope the situation is clear. I honestly believe it's the best harbour web server available today :D

C.

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1109
Joined: Fri Oct 28, 2005 02:27 AM

Re: HIX - Harbour web server

Posted: Fri Sep 11, 2026 04:01 AM

When I run hix.exe 2.0 it immediately starts the web server. If I press Esc it exits hix.exe entirely. How do I access the configuration as in previous Hix 1.3 such as the route, folder etc?

Thank you

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1109
Joined: Fri Oct 28, 2005 02:27 AM

Re: HIX - Harbour web server

Posted: Fri Sep 11, 2026 10:50 AM
hua wrote:

When I run hix.exe 2.0 it immediately starts the web server.
If I press Esc it exits hix.exe entirely.
How do I access the configuration as in previous Hix 1.3 such as the route, folder etc?

For hix 1.3a, how to enable developer mode because i want to investigate why localhost/test.prg returns 404 when test.prg is corrrectly placed in the root folder

Thank you

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1297
Joined: Fri Feb 10, 2006 02:34 PM

Re: HIX - Harbour web server

Posted: Sat Sep 12, 2026 06:02 PM

Hi

hua wrote:

How do I access the configuration as in previous Hix 1.3 such as the route, folder etc?

https://carles9000.github.io/hix/

C.

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix

Continue the discussion