FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour eShop sample and a DBF product file
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
eShop sample and a DBF product file
Posted: 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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: eShop sample and a DBF product file
Posted: Thu Apr 01, 2021 10:21 AM

Otto,

great enhancements on the eshop example! Excellent! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: eShop sample and a DBF product file
Posted: 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 .



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.



I will post the whole source after lunch.

Best regards,
Otto
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: eShop sample and a DBF product file
Posted: 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
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: eShop sample and a DBF product file
Posted: Fri Apr 02, 2021 07: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.08 with Harbour
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: eShop sample and a DBF product file
Posted: Fri Apr 02, 2021 08: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
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: eShop sample and a DBF product file
Posted: 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.08 with Harbour
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: eShop sample and a DBF product file
Posted: 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.08 with Harbour
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: eShop sample and a DBF product file
Posted: 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

Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: eShop sample and a DBF product file
Posted: 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.08 with Harbour
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: eShop sample and a DBF product file
Posted: Fri Apr 02, 2021 11:35 AM

Hi,
modharbour_samples/info.prg
Should tell you that harbour is installed.
Best regards,
Otto

Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: eShop sample and a DBF product file
Posted: 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.08 with Harbour

Continue the discussion