FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FiveTech's FiveWeb (free up to version 1.0)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
FiveTech's FiveWeb (free up to version 1.0)
Posted: Thu Oct 25, 2012 11:30 AM
We have started a new implementation of FiveWeb to be coded and used with Harbour :-)

It is freely available until we reach version 1.0. You can get it from here:
http://code.google.com/p/fiveweb/

Full source code and examples:
http://code.google.com/p/fiveweb/downloads/detail?name=fiveweb_0.1.zip&can=2&q=

You compile it with Harbour and run it from the server as a cgi:

http://www.fivetechsoft.net/cgi-bin/tutor01

Code (fw): Select all Collapse
#include "FiveWeb.ch"

function Main()

   MsgInfo( "Hello world from FiveWeb" )

return nil


Running from the server (you may use a local server like XAMPP):


More info at the project wiki:
http://code.google.com/p/fiveweb/wiki/tutor01_prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Fri Oct 26, 2012 10:48 AM

The problem with CGI is that it's less and less supported by web-space providers, especially CGI EXEs. :-(

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Fri Oct 26, 2012 04:13 PM

Enrico,

Yes, thats why we prefer the other FiveWeb implementation based on php and MySQL

But, just in case, we also have the CGI based solution too

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sat Oct 27, 2012 01:00 PM
For those of you that may be looking for a cheap hosting where you may use your FiveWeb apps, you may use: DreamHost

but you will have to build your apps using Harbour for Linux. FiveWeb provides a build.sh for it.

Here you have samples/tutor01:

http://www.fivetechsoft.net/cgi-bin/tutor01.cgi

For unknown reasons (yet), its result appears as text and not as HTML. Lets see if we can solve it...
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sat Oct 27, 2012 02:41 PM

It displays correct for me.

EMG

:?:

Posts: 159
Joined: Wed Mar 28, 2007 01:19 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sat Oct 27, 2012 03:20 PM

Hi,
With XP / IE8 display correct
With XP / Firefox 16.0.1 display text
With Windows 7 / IE9 display text

Regards, Euclides

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sat Oct 27, 2012 06:16 PM

Enrico,

What browser and version are you using ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sat Oct 27, 2012 06:34 PM

XP/IE8. It seems the only pair that can show your CGI correctly. :D

EMG

Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sat Oct 27, 2012 08:34 PM
Antonio,

the first line of the CGI must be

Code (fw): Select all Collapse
Content-type:text/html\r\n\r\n


where \r\n is return + linefeed (newline)

regards

Marcelo
Posts: 518
Joined: Fri Jun 29, 2012 12:49 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sun Oct 28, 2012 10:43 AM

Antonio,

What commands are available?.

Source folder is empty

Thanks.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sun Oct 28, 2012 02:00 PM
Marcelo,

that was not the problem, thanks anyhow :-)

Thanks to StackOverflow guys I have found the reason:
http://stackoverflow.com/questions/13100505/dreamhost-cgi-result-seen-as-text

Now I am trying to use gtstd or gtcgi instead of gttrm as it seems that it is emiting some escape codes:
https://groups.google.com/forum/?fromgroups=#!topic/harbour-devel/4vbRwMOGf0g
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sun Oct 28, 2012 04:44 PM

Antonio:

Where can I get more info on FiveWeb (version based on PHP and MySQL) ?

Thank you.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Sun Oct 28, 2012 07:20 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Mon Oct 29, 2012 09:48 AM
Fixed. Here it is working on DreamHost (http://www.dreamhost.com/) as a CGI built with Harbour for Linux:
http://www.fivetechsoft.net/cgi-bin/tutor01

Fixed code is already available from:
https://code.google.com/p/fiveweb/
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveTech's FiveWeb (free up to version 1.0)
Posted: Mon Oct 29, 2012 11:14 AM
http://www.fivetechsoft.net/cgi-bin/tutor02

tutor02.prg
Code (fw): Select all Collapse
#include "FiveWeb.ch"

function Main()

   local oDlg
   
   DEFINE DIALOG oDlg TITLE "Hello FiveWeb" SIZE 600, 400
   
   ACTIVATE DIALOG oDlg 

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com