HMGSCRIPT Compilation problem

Moderator: Rathinagiri

Post Reply
Shyam
Posts: 12
Joined: Thu Jul 27, 2017 7:04 am
DBs Used: DBF, MySql, SQlite
Location: Ahmedabad, Gujarat, India
Has thanked: 1 time
Been thanked: 2 times
Contact:

HMGSCRIPT Compilation problem

Post by Shyam » Tue Jul 17, 2018 5:05 pm

To

Dear Group Friends,

I have recently downloaded HMGSCRIPT042 and installed to C: drive

I executed BUILD-CGI.BAT

the above batch file doing some things for MYAPP.PRG but

I can not get output or executed from browser program,

what should I do for compile and run WEB programs

User avatar
mol
Posts: 3028
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 169 times
Been thanked: 92 times
Contact:

Post by mol » Tue Jul 17, 2018 8:16 pm

Are you running any web server, eg. Apache or uhttp server? Did you copied cgi file to correct folder?

Shyam
Posts: 12
Joined: Thu Jul 27, 2017 7:04 am
DBs Used: DBF, MySql, SQlite
Location: Ahmedabad, Gujarat, India
Has thanked: 1 time
Been thanked: 2 times
Contact:

Post by Shyam » Wed Jul 18, 2018 3:02 pm

To,
Sir, mol

I am new for HMGSCRIPT

how to start and compile and run

I used core php and mysql,apache server

I know localhost type concept,


I do not know lavalrel or other frame work

Thanks
shyam

User avatar
mol
Posts: 3028
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 169 times
Been thanked: 92 times
Contact:

Post by mol » Wed Jul 18, 2018 4:14 pm

I'm using WAMP 64 sometimes.
It's installed in C:\WAMP64
Apache server is installed inside this folder.
in Apache folder there is cgi-bin folder.
In this folder you should place your bin files.
You should check configuration to enable cgi-bin files

My path to cgi-bin is c:\wamp64\bin\apache\apache2.4.27\cgi-bin

User avatar
mol
Posts: 3028
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 169 times
Been thanked: 92 times
Contact:

Post by mol » Wed Jul 18, 2018 4:17 pm

The problem is that a lot of commercial servers in internet work under linux OS.
In this case your preparation of cgi-bin file is more complicated.
Better solution is to convert database to mysql and you php procedures to get data from DB.
I've created one network application in this way and it works OK on any server.

User avatar
mol
Posts: 3028
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 169 times
Been thanked: 92 times
Contact:

Post by mol » Wed Jul 18, 2018 4:18 pm

Besides, hmgscript files are js, html and php files - you don't compile them

Post Reply