FiveTech's FiveWeb (free up to version 1.0)

FiveTech's FiveWeb (free up to version 1.0)

Postby Antonio Linares » 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: Select all  Expand view
#include "FiveWeb.ch"

function Main()

   MsgInfo( "Hello world from FiveWeb" )

return nil
 


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

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Antonio Linares » Fri Oct 26, 2012 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Antonio Linares » Sat Oct 27, 2012 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Euclides » Sat Oct 27, 2012 3:20 pm

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

Regards, Euclides
User avatar
Euclides
 
Posts: 156
Joined: Wed Mar 28, 2007 1:19 pm

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Antonio Linares » Sat Oct 27, 2012 6:16 pm

Enrico,

What browser and version are you using ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Enrico Maria Giordano » Sat Oct 27, 2012 6:34 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Marcelo Via Giglio » Sat Oct 27, 2012 8:34 pm

Antonio,

the first line of the CGI must be

Code: Select all  Expand view
Content-type:text/html\r\n\r\n


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

regards

Marcelo
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby elvira » Sun Oct 28, 2012 10:43 am

Antonio,

What commands are available?.

Source folder is empty

Thanks.
elvira
 
Posts: 516
Joined: Fri Jun 29, 2012 12:49 pm

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Antonio Linares » Sun Oct 28, 2012 2: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby HunterEC » Sun Oct 28, 2012 4:44 pm

Antonio:

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

Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Antonio Linares » Sun Oct 28, 2012 7:20 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Antonio Linares » Mon Oct 29, 2012 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveTech's FiveWeb (free up to version 1.0)

Postby Antonio Linares » Mon Oct 29, 2012 11:14 am

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

tutor02.prg
Code: Select all  Expand view
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 47 guests