eShop sample and a DBF product file

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

eShop sample and a DBF product file

Postby Otto » Thu Apr 01, 2021 10:05 am

Hello Mark,

Here

https://www.modharbour.club/modharbour_samples/eshop/index.prg
you see how eShop works with a DBF database.

Maybe you have some images we can use for the demo.

I explain in the next post how I did.

'Best regards,
Otto

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: eShop sample and a DBF product file

Postby Antonio Linares » Thu Apr 01, 2021 10:21 am

Otto,

great enhancements on the eshop example! Excellent! :-)
regards, saludos

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

Re: eShop sample and a DBF product file

Postby Otto » Thu Apr 01, 2021 10:25 am

Hello Mark,

here you you see what I do:

Store DBF into a HASH - pass the HASH to HTML .

Image

Then in the home.view I substitute the hard-coded part through this code.
That is all. That easy.
Thanks to Antonio's wonderful template and his mod harbour.

Image

I will post the whole source after lunch.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: eShop sample and a DBF product file

Postby Otto » Thu Apr 01, 2021 11:43 am

Hello Mark,

Here are the source files I change in eShop example.

https://mybergland.com/fwforum/eshop.zip

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: eShop sample and a DBF product file

Postby Marc Venken » Fri Apr 02, 2021 7:04 am

Thanks.

Will try to setup Mod. in the weekend. to get it up and running for the samples.
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1446
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: eShop sample and a DBF product file

Postby Otto » Fri Apr 02, 2021 8:08 am

Hi,
Here is the easiest way to install the Apache24 server on windows x64
To download:

https://drive.google.com/uc?id=1HEae-kEG_b40bjxO30E57AVJtMlGp6sA&export=download&fbclid=IwAR0_U2AnNm8WWWDz4KtXjmGHZOoUDP6o0YOrlp06WYH0BCc1Jf8T8bmFwD4

Unzip and copy Apache24 folder in C: \

From the C: \ Apache24 folder run "Install Service and Start.bat" as administrator
And that's it.
Saludos,
Adhemar C.


Best regards,
Otto
Here is a video:
https://mybergland.com/fwforum/installmodharbour.mp4
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: eShop sample and a DBF product file

Postby Marc Venken » Fri Apr 02, 2021 10:16 am

I had this text, but it seems to work. I can see stuff with localhost


C:\WINDOWS\system32>rem Parar el servico corre como adm

C:\WINDOWS\system32>C:\Apache24\bin\httpd -k start
(OS 10048)Elk socketadres (protocol/netwerkadres/poort) kan normaal slechts ÚÚn keer worden gebruikt. : AH00072: make_sock: could not bind to address [::]:80
(OS 10048)Elk socketadres (protocol/netwerkadres/poort) kan normaal slechts ÚÚn keer worden gebruikt. : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

C:\WINDOWS\system32>pause
Press any key to continue . . .
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1446
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: eShop sample and a DBF product file

Postby Marc Venken » Fri Apr 02, 2021 10:18 am

For uploading to our server, Just copy the folder to a online location ?
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1446
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: eShop sample and a DBF product file

Postby Otto » Fri Apr 02, 2021 10:20 am

Mark, did you run the file "AS ADMIN"?
Best regards,
Otto
em Parar el servico corre como adm
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: eShop sample and a DBF product file

Postby Marc Venken » Fri Apr 02, 2021 10:30 am

Otto wrote:Mark, did you run the file "AS ADMIN"?
Best regards,
Otto
em Parar el servico corre como adm


Yes. ? (but I tried again)


C:\WINDOWS\system32>rem Parar el servico corre como adm

C:\WINDOWS\system32>C:\Apache24\bin\httpd -k start
(OS 10048)Elk socketadres (protocol/netwerkadres/poort) kan normaal slechts ÚÚn keer worden gebruikt. : AH00072: make_sock: could not bind to address [::]:80
(OS 10048)Elk socketadres (protocol/netwerkadres/poort) kan normaal slechts ÚÚn keer worden gebruikt. : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

C:\WINDOWS\system32>pause
Press any key to continue . . .

But it seems to work whne it put localhost in chrome.
If I change something in the samples dir, it also reflects when i refresh chrome
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1446
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: eShop sample and a DBF product file

Postby Otto » Fri Apr 02, 2021 11:35 am

Hi,
modharbour_samples/info.prg
Should tell you that harbour is installed.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: eShop sample and a DBF product file

Postby Marc Venken » Fri Apr 02, 2021 12:53 pm

Then it is ok.


OS Windows 8 6.2
Harbour Harbour 3.2.0dev (r2004201301)
Build date May 27 2020 05:53:35
Compiler Microsoft Visual C 19.26.28805 (64-bit)
Capabilities
RDD DBF, DBFFPT, DBFNSX, SIXCDX, DBFCDX, SDF, DELIM, DBFBLOB, DBFNTX
Version Harbour
00 HB_VERSION_HARBOUR Harbour 3.2.0dev (r2004201301)
01 HB_VERSION_COMPILER Microsoft Visual C 19.26.28805 (64-bit)
02 HB_VERSION_MAJOR 3
03 HB_VERSION_MINOR 2
04 HB_VERSION_RELEASE 0
05 HB_VERSION_STATUS dev
06 HB_VERSION_REVISION 2004201301
07 HB_VERSION_CHANGELOG_LAST 2020-04-20 15:01 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
08 HB_VERSION_CHANGELOG_ID e8cc50254a83714ccb22e78db84a492a419aa576
09 HB_VERSION_PCODE_VER 3
10 HB_VERSION_PCODE_VER_STR PCode version: 0.3
11 HB_VERSION_BUILD_DATE_STR May 27 2020 05:53:35
12 HB_VERSION_BUILD_DATE 20200527
13 HB_VERSION_BUILD_TIME 05:53:35
14 HB_VERSION_BUILD_PLAT -l-
15 HB_VERSION_BUILD_COMP
16 HB_VERSION_FLAG_PRG
17 HB_VERSION_FLAG_C 64
18 HB_VERSION_FLAG_LINKER 1
19 HB_VERSION_BITWIDTH true
20 HB_VERSION_ENDIANNESS false
21 HB_VERSION_MT WIN
22 HB_VERSION_SHARED win
23 HB_VERSION_UNIX_COMPAT msvc64
24 HB_VERSION_PLATFORM x86-64
25 HB_VERSION_CPU false
26 HB_VERSION_COMPILER_CPP false
27 HB_VERSION_MAX_ https://github.com/harbour/core/
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1446
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 0 guests