topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
mod_harbour Genesis: El ERP de Harbour para la web !!!
|
Gracias estaremos atentos ...
|
mod_harbour Genesis: How does it work?
|
Hi,
I will try to explain in a brief way what we can get with Genesis. It is the result of months of I+D with mod_harbour, the authentic mod apache to run web applications with harbour. Genesis is built with mod_harbour and will help you easily develop your web applications using harbour
We could make an overview of the entire system as follows.
Imagine that we want to consult in our system information about a code entered from our smartphone. Our data will be in dbfs in our case, of course <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
1.- We will create a Task (we will call g_camion) that will be a function that opens our dbf, look for the code, load the data and return them in a hash. Pure Harbour code !!!
[img:8rdj07g2]https://i.postimg.cc/28hwQPdX/task.jpg[/img:8rdj07g2]
We can test our code in the cloud and check the result on the right panel. In this case we return a hash with the keys 'found' and 'row'
2.- We will create a View that will simply be our screen, we will call it in this case gsalida. The most trained in html/Css can code directly. Those who do not, there is a mini-gui available in which we can encode our usual xBase style <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:8rdj07g2]https://i.postimg.cc/xdcNRmDT/view1.jpg[/img:8rdj07g2]
Once the main design of the view is encoded, we will end up adding some javascript to create our request to the query server and wait for a response to be returned to display it on our screen. We want each button press to make a query to the Task that we have defined as g_camion.
[img:8rdj07g2]https://i.postimg.cc/wjt94QvP/view2.jpg[/img:8rdj07g2]
There is only one menu left in our program to run this View. We will have a grid with 3 levels: Group, Subgroup and Item
[img:8rdj07g2]https://i.postimg.cc/K8mHRGX5/menu.jpg[/img:8rdj07g2]
In the 3 level we will indicate that we want you to run our menu. In this case we want you to run the View gsalida
[img:8rdj07g2]https://i.postimg.cc/hG6sbgY6/menu2.jpg[/img:8rdj07g2]
We already have ALL our system ready !!!
We connect with our smartphone to our server and our menu that we have defined will appear
[img:8rdj07g2]https://i.postimg.cc/K8VBCf5g/iphone1.png[/img:8rdj07g2]
When executing it, our View will appear that you can consult with our server the Task defined at the beginning of everything
[img:8rdj07g2]https://i.postimg.cc/26n36RBn/iphone2.png[/img:8rdj07g2]
And with all this general concept, we can extrapolate it until we easily complete our screen
[img:8rdj07g2]https://i.postimg.cc/qv07mZS7/iphone3.png[/img:8rdj07g2]
In few minutes we have designed our web system with our RAD Genesis. The first Harbour system to program our web applications with prg
How do you see the system? : D
[i:8rdj07g2][b:8rdj07g2]mod harbour. The future xBase is here ![/b:8rdj07g2][/i:8rdj07g2]
[img:8rdj07g2]https://i.postimg.cc/76qkHcvW/genesis.png[/img:8rdj07g2]
|
mod_harbour Genesis: How does it work?
|
Felicitaciones Charly se abre una nueva era
Un fuerte abrazo !!
|
mod_harbour Genesis: The Harbour for the web ERP !!!
|
[b:34c5757f]Tutorial:[/b:34c5757f]
[url:34c5757f]http://genesis.mod-harbour.org/genesis/doc/genesis.pdf[/url:34c5757f]
[b:34c5757f]live demo:[/b:34c5757f]
[url:34c5757f]http://genesis.mod-harbour.org/[/url:34c5757f]
The Harbour for the web ERP !!!
Enjoy and join the revolution <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
|
mod_harbour Genesis: The Harbour for the web ERP !!!
|
Links in this post do not work.
Cant find genesis.pdf.
Please help.
Regards.
Dako.
|
mod_harbour Genesis: The Harbour for the web ERP !!!
|
Dako,
You can donwload it from here --> <!-- m --><a class="postlink" href="https://modharbour.app/gpro/doc/genesis.pdf">https://modharbour.app/gpro/doc/genesis.pdf</a><!-- m -->
C.
|
mod_harbour Genesis: The Harbour for the web ERP !!!
|
This sounds very interesting!
The link to the live demo doesn't work. Is there still a live demo available?
|
mod_harbour Genesis: The Harbour for the web ERP !!!
|
Gilbert,
Already fixed. Please try it again:
[url:sspbjzb0]https://www.modharbour.org/modharbour_samples/genesis/index.prg[/url:sspbjzb0]
|
mod_harbour Genesis: The Harbour for the web ERP !!!
|
Antonio,
thanks a lot. First I got an error after logging in, but now it works!
[code=fw:2iumfzcq]<div class="fw" id="{CB}" style="font-family: monospace;">Error opening table: <span style="color: #000000;">views</span><br />UserName: <span style="color: #000000;">Gilbert</span><br />File <span style="color: #0000ff;">to</span> open: /<span style="color: #0000ff;">var</span>/www/html/modharbour_samples/genesis/<span style="color: #00C800;">data</span>/Gilbert/<span style="color: #00C800;">data</span>/views<br />File <span style="color: #0000ff;">exists</span>: <span style="color: #000000;">No</span><br />Error: <span style="color: #000000;">Open</span> error<br />filename: /<span style="color: #0000ff;">var</span>/www/html/modharbour_samples/genesis/<span style="color: #00C800;">data</span>/Gilbert/<span style="color: #00C800;">data</span>/views.dbf<br />called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">pcode</span>.hrb, VIEW, line: <span style="color: #000000;">424</span><br />called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">pcode</span>.hrb, LOGIN, line: <span style="color: #000000;">292</span><br />called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">pcode</span>.hrb, CONTROLLER, line: <span style="color: #000000;">124</span><br />called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">pcode</span>.hrb, MAIN, line: <span style="color: #000000;">13</span><br />called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">HB_HRBDO</span>, line: <span style="color: #000000;">0</span><br />called <span style="color: #0000ff;">from</span>: ../source/exec.prg, EXECUTE, line: <span style="color: #000000;">70</span></div>[/code:2iumfzcq]
trying a second time worked.
|
mod_harbour IDE Visual mejorando...
|
[url:qtci58w1]https://harbour.fourtech.es/modharbour_samples/visual/visual.prg[/url:qtci58w1]
|
mod_harbour PDFs support!!!
|
[img:2zhmc9lg]https://github.com/FiveTechSoft/screenshots/blob/master/modharbour_pdfs.png?raw=true[/img:2zhmc9lg]
|
mod_harbour TEMPLATE/ENDTEXT
|
Dear Antonio,
thank you.
TEMPLATE PARAMS cContent
is working perfect.
Can you please tell me how to do the same with
BLOCKS
Any text or HTML or whatever...
{{Time()}}
{{cContent}}
ENDTEXT
Best regards
Otto
|
mod_harbour TEMPLATE/ENDTEXT
|
Hello Antonio,
How do I insert and show Harbour code inside TEMPLATE/ENDTEXT
How do I insert and show JS code inside TEMPLATE/ENDTEXT
Thank you in advance
Otto
[code=fw:2xfy2acg]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Controller<span style="color: #000000;">(</span> cRequest <span style="color: #000000;">)</span><br /><br /> cContent = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Empty<span style="color: #000000;">(</span> cRequest <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"home"</span>,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> cRequest $ <span style="color: #ff0000;">"wishlist,login,cart,checkout"</span>, cRequest, <span style="color: #ff0000;">"home"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br />TEMPLATE<br /> <h1>My First Heading</h1><br /> <p>My first paragraph.</p><br /> <br />ENDTEXT <br /><br />? cContent <br /> </div>[/code:2xfy2acg]
|
mod_harbour TEMPLATE/ENDTEXT
|
Dear Antonio,
I think I found the answer in the Docs.
Best regards
Otto
<!-- m --><a class="postlink" href="https://github.com/FiveTechSoft/mod_harbour/wiki/Code-tips">https://github.com/FiveTechSoft/mod_har ... /Code-tips</a><!-- m -->
|
mod_harbour TEMPLATE/ENDTEXT
|
Dear Antonio,
can you please tell me why I get an error in this function.
<?prg cContent ?><br>
What is the right syntax to show variables?
Thank you in advance and best regards
Otto
I tried to insert these in eshop/index.prg
[code=fw:1pz37tkb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Controller<span style="color: #000000;">(</span> cRequest <span style="color: #000000;">)</span><br /><br /> cContent = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Empty<span style="color: #000000;">(</span> cRequest <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"home"</span>,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> cRequest $ <span style="color: #ff0000;">"wishlist,login,cart,checkout"</span>, cRequest, <span style="color: #ff0000;">"home"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br />TEMPLATE<br /> <h1>My First Heading</h1><br /> <p>My first paragraph.</p><br /> Test<br><br /> <?prg Time<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ?><br><br /> Otro<br><br /> <?prg DToC<span style="color: #000000;">(</span> Date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ?> <br><br /> Test show cContent<br><br /> <?prg cContent ?><br><br /> <br /> <br /> Si, ok<br><br /> <br />ENDTEXT<br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br /><span style="color: #00C800;">case</span> AP_Method<span style="color: #000000;">(</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"GET"</span><br /> AP_RPuts<span style="color: #000000;">(</span> View<span style="color: #000000;">(</span> <span style="color: #ff0000;">"default"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">case</span> AP_Method<span style="color: #000000;">(</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"POST"</span><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br /> <span style="color: #00C800;">case</span> cRequest == <span style="color: #ff0000;">"login"</span><br /> Login<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">endcase</span> <br /> <span style="color: #00C800;">endcase</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:1pz37tkb]
|
mod_harbour TEMPLATE/ENDTEXT
|
Dear Otto,
<?prg return cContent ?>
|
mod_harbour TEMPLATE/ENDTEXT
|
If you just want small sentences instead of entire functions then you can use BLOCKS instead of TEMPLATE:
[code=fw:24yr0n68]<div class="fw" id="{CB}" style="font-family: monospace;">BLOCKS<br /> Any <span style="color: #0000ff;">text</span> or HTML or whatever...<br /> <span style="color: #000000;">{</span><span style="color: #000000;">{</span>Time<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span><br />ENDTEXT<br /> </div>[/code:24yr0n68]
|
mod_harbour TEMPLATE/ENDTEXT
|
Dear Antonio,
I am doing something wrong. Can you please help me again.
cContent is declared as STATIC
Thank you in advance
Otto
[quote:1o66o70t]
error: Variable does not exist CCONTENT
function Controller( cRequest )
cContent = If( Empty( cRequest ), "home",;
If( cRequest $ "wishlist,login,cart,checkout", cRequest, "home" ) )
TEMPLATE
<h1>My First Heading</h1>
<p>My first paragraph.</p>
Test<br>
<?prg Time() ?><br>
Otro<br>
<?prg DToC( Date() ) ?> <br>
Test show cContent<br>
Si, ok<br>
ENDTEXT
BLOCKS
{{ cContent }}
ENDTEXT
do case
case AP_Method() == "GET"
AP_RPuts( View( "default" ) )
case AP_Method() == "POST"
do case
case cRequest == "login"
Login()
endcase
endcase
return nil
//----------------------------------------------------------------------------//
<?prg return cContent ?>
error: Variable does not exist CCONTENT
called from: GETERRORINFO, line: 103
called from: DOBREAK, line: 114
function Controller( cRequest )
cContent = If( Empty( cRequest ), "home",;
If( cRequest $ "wishlist,login,cart,checkout", cRequest, "home" ) )
TEMPLATE
<h1>My First Heading</h1>
<p>My first paragraph.</p>
Test<br>
<?prg Time() ?><br>
Otro<br>
<?prg DToC( Date() ) ?> <br>
Test show cContent<br>
Si, ok<br>
<?prg return cContent ?>
ENDTEXT
do case
case AP_Method() == "GET"
AP_RPuts( View( "default" ) )
case AP_Method() == "POST"
do case
case cRequest == "login"
Login()
endcase
endcase
return nil
//----------------------------------------------------------------------------//
[/quote:1o66o70t]
|
mod_harbour TEMPLATE/ENDTEXT
|
TEMPLATE PARAMS cContent
|
mod_harbour TEMPLATE/ENDTEXT
|
Dear Otto,
work in progress...
#xcommand BLOCKS [ PARAMS [<v1>] [,<vn>] ] => #pragma __cstream | AP_RPuts( MyReplaceBlocks( %s, "{{", "}}" [,<(v1)>][+","+<(vn)>] [, @<v1>][, @<vn>] ) )
[code=fw:202i77w5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> MyReplaceBlocks<span style="color: #000000;">(</span> cCode, cStartBlock, cEndBlock, cParams, ... <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> nStart, nEnd, cBlock<br /> <span style="color: #00C800;">local</span> lReplaced := .F.<br /> <br /> hb_default<span style="color: #000000;">(</span> @cStartBlock, <span style="color: #ff0000;">"{{"</span> <span style="color: #000000;">)</span><br /> hb_default<span style="color: #000000;">(</span> @cEndBlock, <span style="color: #ff0000;">"}}"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">while</span> <span style="color: #000000;">(</span> nStart := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cStartBlock, cCode <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> .and. ;<br /> <span style="color: #000000;">(</span> nEnd := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cEndBlock, cCode <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span><br /> cBlock = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, nStart + Len<span style="color: #000000;">(</span> cStartBlock <span style="color: #000000;">)</span>, nEnd - nStart - Len<span style="color: #000000;">(</span> cEndBlock <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cCode = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, <span style="color: #000000;">1</span>, nStart - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> + ValToChar<span style="color: #000000;">(</span> &<span style="color: #000000;">(</span> cBlock <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, nEnd + Len<span style="color: #000000;">(</span> cEndBlock <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> lReplaced = .T.<br /> end<br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> HB_PIsByRef<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, lReplaced, cCode <span style="color: #000000;">)</span></div>[/code:202i77w5]
|
mod_harbour TEMPLATE/ENDTEXT
|
This seems the be the right code:
#xcommand BLOCKS [ PARAMS [<v1>] [,<vn>] ] => #pragma __cstream | AP_RPuts( MyReplaceBlocks( %s, "{{", "}}" [,<(v1)>][+","+<(vn)>] [, @<v1>][, @<vn>] ) )
[code=fw:vl76a9ig]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> MyReplaceBlocks<span style="color: #000000;">(</span> cCode, cStartBlock, cEndBlock, cParams, ... <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> nStart, nEnd, cBlock<br /> <span style="color: #00C800;">local</span> lReplaced := .F.<br /> <br /> hb_default<span style="color: #000000;">(</span> @cStartBlock, <span style="color: #ff0000;">"{{"</span> <span style="color: #000000;">)</span><br /> hb_default<span style="color: #000000;">(</span> @cEndBlock, <span style="color: #ff0000;">"}}"</span> <span style="color: #000000;">)</span><br /> hb_default<span style="color: #000000;">(</span> @cParams, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">while</span> <span style="color: #000000;">(</span> nStart := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cStartBlock, cCode <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> .and. ;<br /> <span style="color: #000000;">(</span> nEnd := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cEndBlock, cCode <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span><br /> cBlock = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, nStart + Len<span style="color: #000000;">(</span> cStartBlock <span style="color: #000000;">)</span>, nEnd - nStart - Len<span style="color: #000000;">(</span> cEndBlock <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cCode = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, <span style="color: #000000;">1</span>, nStart - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> + ;<br /> ValToChar<span style="color: #000000;">(</span> Eval<span style="color: #000000;">(</span> &<span style="color: #000000;">(</span> <span style="color: #ff0000;">"{ |"</span> + cParams + <span style="color: #ff0000;">"| "</span> + cBlock + <span style="color: #ff0000;">" }"</span> <span style="color: #000000;">)</span>, ... <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, nEnd + Len<span style="color: #000000;">(</span> cEndBlock <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> lReplaced = .T.<br /> end<br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> HB_PIsByRef<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, lReplaced, cCode <span style="color: #000000;">)</span></div>[/code:vl76a9ig]
|
mod_harbour TEMPLATE/ENDTEXT
|
Dear Otto,
ok, this example is working fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
blocks2.prg
[code=fw:bv9d4nlg]<div class="fw" id="{CB}" style="font-family: monospace;">#xcommand BLOCKS <span style="color: #000000;">[</span> PARAMS <span style="color: #000000;">[</span><v1><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,<vn><span style="color: #000000;">]</span> <span style="color: #000000;">]</span> => ;<br /> <span style="color: #00D7D7;">#pragma</span> __cstream | AP_RPuts<span style="color: #000000;">(</span> MyReplaceBlocks<span style="color: #000000;">(</span> %s, <span style="color: #ff0000;">"{{"</span>, <span style="color: #ff0000;">"}}"</span> <span style="color: #000000;">[</span>,<<span style="color: #000000;">(</span>v1<span style="color: #000000;">)</span>><span style="color: #000000;">]</span><span style="color: #000000;">[</span>+<span style="color: #ff0000;">","</span>+<<span style="color: #000000;">(</span>vn<span style="color: #000000;">)</span>><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>, @<v1><span style="color: #000000;">]</span><span style="color: #000000;">[</span>, @<vn><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cValue := <span style="color: #ff0000;">"Hello world"</span><br /><br /> BLOCKS PARAMS cValue<br /> I can freely write here any <span style="color: #0000ff;">text</span> but also I can use my <span style="color: #00C800;">local</span> vars:<br /> <span style="color: #000000;">{</span><span style="color: #000000;">{</span>cValue<span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /> so it seems <span style="color: #0000ff;">to</span> work fine ;-<span style="color: #000000;">)</span><br /> ENDTEXT<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> MyReplaceBlocks<span style="color: #000000;">(</span> cCode, cStartBlock, cEndBlock, cParams, ... <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> nStart, nEnd, cBlock<br /> <span style="color: #00C800;">local</span> lReplaced := .F.<br /> <br /> hb_default<span style="color: #000000;">(</span> @cStartBlock, <span style="color: #ff0000;">"{{"</span> <span style="color: #000000;">)</span><br /> hb_default<span style="color: #000000;">(</span> @cEndBlock, <span style="color: #ff0000;">"}}"</span> <span style="color: #000000;">)</span><br /> hb_default<span style="color: #000000;">(</span> @cParams, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">while</span> <span style="color: #000000;">(</span> nStart := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cStartBlock, cCode <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> .and. ;<br /> <span style="color: #000000;">(</span> nEnd := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cEndBlock, cCode <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span><br /> cBlock = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, nStart + Len<span style="color: #000000;">(</span> cStartBlock <span style="color: #000000;">)</span>, nEnd - nStart - Len<span style="color: #000000;">(</span> cEndBlock <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cCode = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, <span style="color: #000000;">1</span>, nStart - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> + ;<br /> ValToChar<span style="color: #000000;">(</span> Eval<span style="color: #000000;">(</span> &<span style="color: #000000;">(</span> <span style="color: #ff0000;">"{ |"</span> + cParams + <span style="color: #ff0000;">"| "</span> + cBlock + <span style="color: #ff0000;">" }"</span> <span style="color: #000000;">)</span>, ... <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, nEnd + Len<span style="color: #000000;">(</span> cEndBlock <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> lReplaced = .T.<br /> end<br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> HB_PIsByRef<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, lReplaced, cCode <span style="color: #000000;">)</span></div>[/code:bv9d4nlg]
|
mod_harbour TEMPLATE/ENDTEXT
|
Otto,
There is a new mod_harbour with BLOCKS PARAMS ... support
I have updated it in your server <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Please test the new example blocks2.prg
|
mod_harbour Visual IDE improving...
|
[url:8ki0q4bc]https://harbour.fourtech.es/modharbour_samples/visual/visual.prg[/url:8ki0q4bc]
|
mod_harbour acceso a los fuentes de los programas
|
Le encuentro un problema al modulo de Harbour para Apache y es que al ejecutar los prg alguien con acceso al servidor donde se encuentran los prg los ve directamente e incluso podría modificarlos. También se ven comprometidos los derechos del autor de los prg. Con un ejecutable esto es mucho más difícil. Espero sus opiniones. Saludos.
|
mod_harbour acceso a los fuentes de los programas
|
Es un tema bastante largo de comentar, y hay soluciones, evidentemente, pero lo más importante es que entiendas que sólo las personas que tengan acceso al servidor podrán leer/modificar esos ficheros, es decir, es un tema básicamente de configuración del servidor que no tiene nada que ver con mod_harbour. Igual te podría pasar si tu servidor usa PHP o cualquier otro lenguaje y los usuarios tienen acceso a él.
|
mod_harbour acceso a los fuentes de los programas
|
En vez de fuentes .prg se pueden compilar y asi poder usar archivos .hrb
Ya se han usado y además de dar privacidad, aumentan la velocidad de ejecucion, puesto que vienen compilados.
No se conoce ningun decompilador para archivos .hrb.
|
mod_harbour and ADS server
|
Hello,
at the moment samples/ads.prg throws an error:
Error: Unknown or unregistered symbol
operation: ADSSETSERVERTYPE
called from: HB_HRBLOAD, line: 0
called from: ../apache.prg, EXECUTE, line: 143
on both mod_harbour and our testserver. Can we do something about it?
Is ADS remote server supported?
Thanks,
Taavi.
|
mod_harbour and ADS server
|
Hi,
Just wanted to say that with some help from Antonio ADS remote server is working smoothly with mod_harbour now.
Just put ADS dll-s (and ads.ini if needed) in Apache/bin and verify if ADS dll-s are 64-bit for 64-bit Apache (or use 32-bit Apache for 32-bit ADS dll-s).
Thanks, Antonio.
|
mod_harbour and ADS server
|
Glad to know that [b:29ye0uct]mod_harbour[/b:29ye0uct] is working fine as expected.
Harbour for the web power! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
mod_harbour and ADS server
|
Taavi
Podrias decirme cuales dll fueron los que pasaste
Gracias.
|
mod_harbour and ADS server
|
[url:37mgdwjo]http://devzone.advantagedatabase.com/dz/content.aspx?Key=20&Release=19&Product=5&Platform=14[/url:37mgdwjo]
|
mod_harbour and ADS server
|
Hola
he bajado el archivo y he pegado los dll en C:\xampp\apache\bin
ace64.dll
ace64.lib
axcws64.dll
Ads.ini
pero aun recibo el error
[quote:2xedsxku]Error: Unknown or unregistered symbol
operation: ADSSETSERVERTYPE
called from: HB_HRBLOAD, line: 0
called from: ..\source\exec.prg, EXECUTE, line: 70
[/quote:2xedsxku]
Source:
|
mod_harbour and ADS server
|
Patricio,
Comprueba que estés usando esta versión:
[url:o4xwetee]https://github.com/FiveTechSoft/mod_harbour/releases/download/3.0/modharbour_win64_msvc_ads_2020_05_27.zip[/url:o4xwetee]
|
mod_harbour and ADS server
|
gracias Antonio funciono!!!
para que funcione lo que hice fue esto
[quote:2t1575jp]copiar los archivos en C:\xampp\apache\bin
ace64.dll
ace64.lib
axcws64.dll
adsloc64.dll
Ads.ini
[/quote:2t1575jp]
ejemplo
[code=fw:2t1575jp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ? RddRegister<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ADS"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> ? AdsSetServerType<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// ADS_LOCAL_SERVER )</span><br /> ? RDDSetDefault<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ADS"</span> <span style="color: #000000;">)</span><br /> ? RddSetDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/*<br /> DbCreate( hb_GetEnv( "PRGPATH" ) + "/data/test.dbf",;<br /> { { "FIRST", "C", 30, 0 },;<br /> { "LAST", "C", 30, 0 } } )<br /> */</span><br /><br /> USE <span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/data/menus.dbf"</span> <span style="color: #000000;">)</span> VIA <span style="color: #ff0000;">"ADS"</span><br /><br /> ? FieldName<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> ? FieldGet<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> ? RecCount<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> USE<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2t1575jp]
resultado
[code=fw:2t1575jp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">NIL</span><br /><span style="color: #000000;">0</span><br />DBFNTX<br />ADS<br />GLYPH<br />test<br /><span style="color: #000000;">3</span></div>[/code:2t1575jp]
|
mod_harbour and ADS server
|
También funciona con diccionario de datos, instale en una maquina virtual con ads server
[code=fw:3mvaedtf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> hConnection, aIndex, cDbf, i<br /><br /> RddRegister<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ADS"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> rddsetdefault<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ADS"</span> <span style="color: #000000;">)</span><br /> AdsSetFileType<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /> AdsSetServerType<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// ADS_REMOTE_SERVER )</span><br /> AdsLocking<span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span><br /> AdsRightsCheck<span style="color: #000000;">(</span> .f. <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> AdsConnect60<span style="color: #000000;">(</span> <span style="color: #ff0000;">"<span style="color: #000000;">\\</span>VM-VIRTUAL<span style="color: #000000;">\S</span>ISTEMA<span style="color: #000000;">\D</span>ATOS<span style="color: #000000;">\W</span>INFACTU.ADD"</span>, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"adssys"</span>, <span style="color: #ff0000;">"pass"</span>,, @hConnection <span style="color: #000000;">)</span><br /> aIndex := AdsDirectory<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">(</span> aIndex <span style="color: #000000;">)</span><br /> cDbf := <span style="color: #0000ff;">Left</span><span style="color: #000000;">(</span> aIndex<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span>, len<span style="color: #000000;">(</span> aIndex<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> <span style="color: #000000;">)</span><span style="color: #000000;">-1</span> <span style="color: #000000;">)</span><br /> ? cDbf<br /> <span style="color: #00C800;">next</span> i<br /> <span style="color: #00C800;">else</span><br /> ? <span style="color: #ff0000;">'error al conectarse a la base de datos'</span><br /> <span style="color: #00C800;">endif</span><br /><br /> AdsDisconnect<span style="color: #000000;">(</span>hConnection<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3mvaedtf]
resultado
[code=fw:3mvaedtf]<div class="fw" id="{CB}" style="font-family: monospace;">BODEGA<br />DOCU_BF<br />DBTODOS<br />CTACTE<br />DOCU_COD<br />DOCU_COT<br />DOCU_DPR<br />DOCU_FPP<br />DOCU_FP<br />CLIENTES<br />DOCU_ENT<br />ARTICU<br />DOCU_OC</div>[/code:3mvaedtf]
archivo ads.ini
[code=fw:3mvaedtf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">[</span>SETTINGS<span style="color: #000000;">]</span><br /><br />RETRY_ADS_CONNECTS = <span style="color: #000000;">1</span> <br />DEFAULT_PROTOCOL=<span style="color: #000000;">1</span><br />MTIER_LOCAL_CONNECTIONS=<span style="color: #000000;">1</span><br /><br /><span style="color: #000000;">[</span>VM-VIRTUAL<span style="color: #000000;">]</span><br />LAN_IP=<span style="color: #000000;">192.168</span><span style="color: #000000;">.0</span><span style="color: #000000;">.110</span><br />LAN_PORT=<span style="color: #000000;">6262</span></div>[/code:3mvaedtf]
espero que les sea de utilidad
|
mod_harbour and ADS server
|
Muy bien!
|
mod_harbour and APACHE on WINDOWS SERVER
|
Hello,
is someone here using mod_harbour and APACHE on a WINDOWS SERVER.
If yes can you please share the content of the APACHE folder.
Thank you in advance
Otto
|
mod_harbour and APACHE on WINDOWS SERVER
|
Dear Otto,
If you provide me remote access to it, I will check it
|
mod_harbour and APACHE on WINDOWS SERVER
|
Dear Antonio,
thank you. I have sent you an E-Mail.
Best regards,
Otto
|
mod_harbour and APACHE on WINDOWS SERVER
|
Otto,
When xampp starts it reports this problem:
[quote:2p69y7zc]09:32:12 [main] Required XAMPP prerequisite not found!
09:32:12 [main] You do not appear to have the Microsoft Visual C++ 2008 Runtimes installed
09:32:12 [main] This is required for XAMPP to fully function
09:32:12 [main] <!-- m --><a class="postlink" href="http://www.microsoft.com/download/en/details.aspx?id=5582">http://www.microsoft.com/download/en/de ... px?id=5582</a><!-- m -->[/quote:2p69y7zc]
I have downloaded and installed the Microsoft Visual C++ 2008 Runtimes but xampp keeps complaining and fails to start
I have download Apache 64 to check if it makes a difference, but it refuses to boot also. So it seems as there is a missing
dependency on your server that does not allow Apache to work
|
mod_harbour and APACHE on WINDOWS SERVER
|
Otto,
I am checking on my computer the externals that Apache uses:
Please check that you have these files on your server:
[img:3pl3pm39]https://github.com/FiveTechSoft/screenshots/blob/master/httpd_externals.PNG?raw=true[/img:3pl3pm39]
|
mod_harbour and APACHE on WINDOWS SERVER
|
Otto,
This is the tool that I use to check for the externals:
[url:sxccokrh]https://github.com/FiveTechSoft/FWH_tools/blob/master/peinfo.exe[/url:sxccokrh]
|
mod_harbour and APACHE on WINDOWS SERVER
|
Otto,
I am working on your PC to fix it, please wait some minutes <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
mod_harbour and APACHE on WINDOWS SERVER
|
Working fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
mod_harbour and APACHE on WINDOWS SERVER
|
Hey!
let me recommend Chocolatey. It is a package manager for windows, like brew for OSX, apt for Debian and derivatives, yum, etc.
It has many advantages, including the install of dependencies, and a clean uninstall if required.
After installing Chocolatey, you can install Xampp with
[code=fw:2bt53x60]<div class="fw" id="{CB}" style="font-family: monospace;"><br />choco install bitnami-xampp<br /> </div>[/code:2bt53x60]
it requires reboot, but works fine.
KR,
|
mod_harbour and APACHE on WINDOWS SERVER
|
Dear Antonio,
would you be so kind to tell us how to start PEInfo to get this information.
Thank you in advance
Otto
|
mod_harbour and vscode + Antonino's debugger together!!!
|
Now we have source code editor and debugger for Windows, Linux and OSX for mod_harbour <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
[img:3h1te32k]https://github.com/FiveTechSoft/screenshots/blob/master/vscode_modharbour.png?raw=true[/img:3h1te32k]
|
mod_harbour and vscode + Antonino's debugger together!!!
|
[img:1gzigr9y]https://github.com/FiveTechSoft/screenshots/blob/master/modharbour_arch.png?raw=true[/img:1gzigr9y]
|
mod_harbour benchmark utility using CURL
|
[code=fw:28cqz7ur]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"/home/user/harbour/contrib/hbcurl/hbcurl.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> n<br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span><br /> hb_threadStart<span style="color: #000000;">(</span> @ReadWeb<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /><br /> hb_threadWaitForAll<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> InKey<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #00C800;">function</span> ReadWeb<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">local</span> hCurl, cBuffer := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> cUrl := <span style="color: #ff0000;">"http://www.modharbour.org/modharbour_samples/info.prg"</span><br /><br /> curl_global_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <br /> <span style="color: #00C800;">if</span> ! empty<span style="color: #000000;">(</span> hCurl := curl_easy_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_URL, cUrl <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_DL_BUFF_SETUP <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> curl_easy_perform<span style="color: #000000;">(</span> hCurl <span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><br /> uValue = curl_easy_dl_buff_get<span style="color: #000000;">(</span> hCurl <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">'Thread: '</span>, hb_threadId<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">'Get: '</span>, Len<span style="color: #000000;">(</span> uValue <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> <br /> curl_global_cleanup<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:28cqz7ur]
|
mod_harbour benchmark utility using CURL
|
Another version by Carles:
[code=fw:ql4gc4hm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> n<br /> <span style="color: #00C800;">local</span> aThreads := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><br /> Aadd<span style="color: #000000;">(</span> aThreads, hb_threadStart<span style="color: #000000;">(</span> @Slow<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span><br /> Aadd<span style="color: #000000;">(</span> aThreads, hb_threadStart<span style="color: #000000;">(</span> @ReadWeb<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <br /> nThreads := len<span style="color: #000000;">(</span> aThreads <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">while</span> <span style="color: #000000;">(</span> j := hb_threadWait<span style="color: #000000;">(</span> aThreads, <span style="color: #000000;">0.1</span>, .T.<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <> nThreads<br /> ? <span style="color: #ff0000;">'Executed => '</span> , j<br /> end<br /> <br /> ? <span style="color: #ff0000;">'Executed All => '</span>, nThreads<br /> <br /> hb_threadWaitForAll<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> InKey<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #00C800;">function</span> Slow<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> inkey<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">'Thread: '</span>, hb_threadId<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">'Slow Done'</span><br />retu <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> ReadWeb<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">local</span> hCurl, cBuffer := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> cUrl := <span style="color: #ff0000;">"http://www.modharbour.org/modharbour_samples/info.prg"</span><br /><br /> curl_global_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <br /> <span style="color: #00C800;">if</span> ! empty<span style="color: #000000;">(</span> hCurl := curl_easy_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_URL, cUrl <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_DL_BUFF_SETUP <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> curl_easy_perform<span style="color: #000000;">(</span> hCurl <span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><br /> uValue := curl_easy_dl_buff_get<span style="color: #000000;">(</span> hCurl <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">'Thread: '</span>, hb_threadId<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">'Get: '</span> , len<span style="color: #000000;">(</span> uValue<span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> <br /> curl_global_cleanup<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> </div>[/code:ql4gc4hm]
|
mod_harbour code snippets
|
[code=fw:2qvl5a90]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> n<br /> <br /> ? __DYNSCOUNT<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"symbols"</span><br /> <br /> <span style="color: #00C800;">for</span> n = __DYNSCOUNT<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">1</span> step <span style="color: #000000;">-1</span><br /> ? __DYNSCOUNT<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - n + <span style="color: #000000;">1</span>, __DYNSGETNAME<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span> <br /> <br /> ? <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"script>$('#result').css('overflow', 'auto');<"</span> + <span style="color: #ff0000;">"/script>"</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2qvl5a90]
|
mod_harbour code snippets
|
[code=fw:q3rgorrr]<div class="fw" id="{CB}" style="font-family: monospace;">#xcommand <span style="color: #00C800;">DO</span> <prg> => _Do<span style="color: #000000;">(</span> <prg> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #ff0000;">"info.prg"</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> _Do<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span><br /><br /> cFileName = hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/../"</span> + cFileName<br /><br /><span style="color: #00C800;">return</span> AP_RPuts<span style="color: #000000;">(</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> File<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span>, Execute<span style="color: #000000;">(</span> MemoRead<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>,;<br /> <span style="color: #ff0000;">"File not found "</span> + cFileName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:q3rgorrr]
|
mod_harbour code snippets
|
[code=fw:2d11gluv]<div class="fw" id="{CB}" style="font-family: monospace;">#xcommand <span style="color: #00C800;">DO</span> <prg> => _Do<span style="color: #000000;">(</span> <prg> <span style="color: #000000;">)</span><br />#xcommand CLEAR => ClearResult<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> CLEAR<br /> <span style="color: #B900B9;">// DO "info.prg"</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> _Do<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span><br /><br /> cFileName = hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/../"</span> + cFileName<br /><br /><span style="color: #00C800;">return</span> AP_RPuts<span style="color: #000000;">(</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> File<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span>, Execute<span style="color: #000000;">(</span> MemoRead<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>,;<br /> <span style="color: #ff0000;">"File not found "</span> + cFileName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">function</span> ClearResult<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"script>$('#result').html( '' );<"</span> + <span style="color: #ff0000;">"/script>"</span></div>[/code:2d11gluv]
|
mod_harbour code snippets
|
[code=fw:3v3mosqu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">Popup</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Hello world"</span>, <span style="color: #ff0000;">"Using Popups"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> <span style="color: #0000ff;">Popup</span><span style="color: #000000;">(</span> cMsg, cTitle <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DEFAULT</span> cTitle <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Popups"</span><br /><br /><span style="color: #00C800;">return</span> AP_RPuts<span style="color: #000000;">(</span> <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"script>MsgMemo( '"</span> + cMsg + <span style="color: #ff0000;">"','"</span> + cTitle + <span style="color: #ff0000;">"');<"</span> + <span style="color: #ff0000;">"/script>"</span> <span style="color: #000000;">)</span></div>[/code:3v3mosqu]
|
mod_harbour code snippets
|
[code=fw:287mw2o4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Hello world"</span>, <span style="color: #ff0000;">"move me with the mouse"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> cMsg, cTitle <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DEFAULT</span> cTitle <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Popups"</span><br /><br /><span style="color: #00C800;">return</span> AP_RPuts<span style="color: #000000;">(</span> <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"script>MsgInfo( '"</span> + cMsg + <span style="color: #ff0000;">"','"</span> + cTitle + <span style="color: #ff0000;">"');<"</span> + <span style="color: #ff0000;">"/script>"</span> <span style="color: #000000;">)</span></div>[/code:287mw2o4]
|
mod_harbour code snippets
|
[code=fw:76buz0my]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> Alert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ok"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> Alert<span style="color: #000000;">(</span> cMsg <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> AP_RPuts<span style="color: #000000;">(</span> <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"script>alert( '"</span> + cMsg + <span style="color: #ff0000;">"' );<"</span> + <span style="color: #ff0000;">"/script>"</span> <span style="color: #000000;">)</span></div>[/code:76buz0my]
|
mod_harbour code snippets
|
[code=fw:126mfrlz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">Popup</span><span style="color: #000000;">(</span> _Do<span style="color: #000000;">(</span> <span style="color: #ff0000;">"info.prg"</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"info.prg"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> <span style="color: #0000ff;">Popup</span><span style="color: #000000;">(</span> cMsg, cTitle <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> AP_RPuts<span style="color: #000000;">(</span> <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"script>RunCode( '"</span> + cMsg + <span style="color: #ff0000;">"');MsgMemo('','"</span> + ;<br /> cTitle + <span style="color: #ff0000;">"', true );<"</span> + <span style="color: #ff0000;">"/script>"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">function</span> _Do<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span><br /><br /> cFileName = hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/../"</span> + cFileName<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> File<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span>, HB_BASE64ENCODE<span style="color: #000000;">(</span> MemoRead<span style="color: #000000;">(</span> cFileName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>,;<br /> <span style="color: #ff0000;">"File not found "</span> + cFileName <span style="color: #000000;">)</span></div>[/code:126mfrlz]
|
mod_harbour code snippets
|
Review all code snippets:
[code=fw:1in682lh]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cCode<br /><br /> USE <span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/snippets"</span> <span style="color: #000000;">)</span> SHARED <span style="color: #00C800;">NEW</span><br /> <br /> ? <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"script>$( '#result' ).css( 'overflow', 'auto' );<"</span> + <span style="color: #ff0000;">"/script>"</span><br /><br /> <span style="color: #00C800;">while</span> ! Eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"font color='red'>id: "</span> + Field->Id + <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"/font>"</span><br /> ? <br /> cCode = Field->Code<br /> cCode = StrTran<span style="color: #000000;">(</span> cCode, CRLF, <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"br>"</span> <span style="color: #000000;">)</span><br /> cCode = StrTran<span style="color: #000000;">(</span> cCode, <span style="color: #ff0000;">" "</span>, <span style="color: #ff0000;">"&"</span> + <span style="color: #ff0000;">"nbsp;"</span> <span style="color: #000000;">)</span><br /> cCode = StrTran<span style="color: #000000;">(</span> cCode, <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"d"</span>, <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">" "</span> + <span style="color: #ff0000;">"d"</span> <span style="color: #000000;">)</span><br /> ? cCode<br /> ? <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"hr>"</span><br /> SKIP<br /> end<br /> <br /> USE<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1in682lh]
|
mod_harbour code snippets
|
[code=fw:3axpiafx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> MsgGet<span style="color: #000000;">(</span> <span style="color: #ff0000;">"number: "</span>, <span style="color: #ff0000;">"Goto line"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> MsgGet<span style="color: #000000;">(</span> cLabel, cTitle <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> AP_RPuts<span style="color: #000000;">(</span> <span style="color: #ff0000;">"<"</span> + <span style="color: #ff0000;">"script>MsgGet('"</span> + cLabel + <span style="color: #ff0000;">"','"</span> + cTitle + <span style="color: #ff0000;">"')<"</span> + <span style="color: #ff0000;">"/script>"</span> <span style="color: #000000;">)</span></div>[/code:3axpiafx]
|
mod_harbour code snippets !!!
|
Test your code, press save and share it with other mod_harbour users!!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:2cwuoomo]https://harbour.fourtech.es/modharbour_samples/snippets/id.prg?calpe1[/url:2cwuoomo]
Full source code:
[url:2cwuoomo]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples/snippets[/url:2cwuoomo]
|
mod_harbour com firebird
|
Dear Antonio,
I got this question:
Boa tarde Otto, você sabe informar se é possível utilizar mod_harbour com firebird ?
Du hast Folgendes gesendet:
Feliciano, I think for sure.
But I actually only use DBF.
I posted your question in the FIVEWIN forum and in the SKYPE group.
Let's wait for the answer.
Best regards,
Otto
|
mod_harbour com firebird
|
Dear Otto,
good morning
There is a folder in c:\harbour\contrib\hbfbird\ that as it says:
[quote:3rldu4ks]README 2003-12-23 - Harbour low-level API for Firebird and Interbase RDBMS
This work is not finished yet. It's planned to be similar to Harbour TMysql routines.
For full firebird documentation look at:
Firebird home: <!-- m --><a class="postlink" href="http://firebird.sourceforge.net/index.php">http://firebird.sourceforge.net/index.php</a><!-- m -->
Api: <!-- m --><a class="postlink" href="http://www.ibphoenix.com/downloads/60ApiGuide.zip">http://www.ibphoenix.com/downloads/60ApiGuide.zip</a><!-- m -->
Data Definition: <!-- m --><a class="postlink" href="http://www.ibphoenix.com/downloads/60DataDef.zip">http://www.ibphoenix.com/downloads/60DataDef.zip</a><!-- m -->
Language Reference: <!-- m --><a class="postlink" href="http://www.ibphoenix.com/downloads/60LangRef.zip">http://www.ibphoenix.com/downloads/60LangRef.zip</a><!-- m -->
Developers guide: <!-- m --><a class="postlink" href="http://www.ibphoenix.com/downloads/60DevGuide.zip">http://www.ibphoenix.com/downloads/60DevGuide.zip</a><!-- m -->
The Class implementation has no all implementation like TMysql has, because Firebird it's diferent.
For example, you cannot navigate in records like Mysql do, ex: Getrow( number of row ), in firebird you can
just go forward.
TODO:
Full implementation of blob control. For now, we have only partial control, only for text blobs (subtype 1).
Improve Insert and Update commands using DSQL.
Implements to do:
FBOpenBlob( blob_id )
FBReadBlob( blob_id, string, segment_size )
FBCreateBlob()
FBPutBlob( blob_id, string, segment_size )
FBCloseBlob( blob_id )
BUGS:
Fix a few segment faults. I Need some help to find what's going on here.
That's all folks and sorry my poor English
Rodrigo Moreno - <!-- e --><a href="mailto:rodrigo_moreno@yahoo.com">rodrigo_moreno@yahoo.com</a><!-- e -->
[/quote:3rldu4ks]
I have never tested it myself, but I guess thats the way to go <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
mod_harbour compartir código
|
Prueba tu código, sálvalo y compártelo con otros usuarios de mod_harbour !!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:gyn6y07j]https://harbour.fourtech.es/modharbour_samples/snippets/id.prg?calpe1[/url:gyn6y07j]
Código fuente completo:
[url:gyn6y07j]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples/snippets[/url:gyn6y07j]
|
mod_harbour documentation
|
mod_harbour wiki:
[url:woxh4eac]https://github.com/FiveTechSoft/mod_harbour/wiki[/url:woxh4eac]
Please review also:
[url:woxh4eac]https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/readme.md[/url:woxh4eac]
[url:woxh4eac]https://github.com/FiveTechSoft/mod_harbour/blob/master/linux/readme.md[/url:woxh4eac]
[url:woxh4eac]https://github.com/FiveTechSoft/mod_harbour/blob/master/osx/readme.md[/url:woxh4eac]
third party libraries:
Charly's WDO:
[url:woxh4eac]https://github.com/carles9000/wdo[/url:woxh4eac]
Charly's Mercury:
[url:woxh4eac]https://github.com/carles9000/mercury[/url:woxh4eac]
mod_harbour examples:
live demo: [url:woxh4eac]https://www.modharbour.org/modharbour_samples/[/url:woxh4eac]
source code: [url:woxh4eac]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples[/url:woxh4eac]
|
mod_harbour ejemplos
|
demos online: (haz click en cualquier .prg)
[url:1g01f6x1]https://harbour.fourtech.es/modharbour_examples/[/url:1g01f6x1]
Código fuente:
[url:1g01f6x1]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples[/url:1g01f6x1]
|
mod_harbour ejemplos
|
Excelente Antonio! Felicitaciones.
Saludos
|
mod_harbour ejemplos
|
Excelente...
Felicitaciones, tengo una pregunta?
Se puede publicar en un servidor compartido (comercial - cpanel)?
Saludos
|
mod_harbour ejemplos
|
Leandro,
No se puede porque no te van a permitir que instales mod_harbour
Por eso es preciso usar un servidor dedicado
|
mod_harbour ejemplos
|
Ya no funciona <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
<!-- m --><a class="postlink" href="https://harbour.fourtech.es/modharbour_examples/">https://harbour.fourtech.es/modharbour_examples/</a><!-- m -->
Not Found
The requested URL /modharbour_examples/ was not found on this server.
Apache/2.4.29 (Ubuntu) Server at harbour.fourtech.es Port 80
|
mod_harbour ejemplos
|
Aida,
Simplemente lo hemos renombrado a:
[url:oem0n2xf]https://harbour.fourtech.es/modharbour_samples/[/url:oem0n2xf]
No te pierdas las nuevas demos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Gestión de usuarios:
[url:oem0n2xf]https://harbour.fourtech.es/modharbour_samples/apps/honey/index.prg[/url:oem0n2xf]
Blog:
[url:oem0n2xf]https://harbour.fourtech.es/modharbour_samples/blog/index.prg[/url:oem0n2xf]
|
mod_harbour ejemplos
|
Antonio, but in virtual machines like azure or amazon, can i install harbour_mod? I buy the vm, I can choose the OS, memory , hd, install apache and harbour_mor or not?
Im not saying about webserver or cpanel, but an vm, in cloud public or Hybrid.
very thanks
|
mod_harbour ejemplos
|
Yes
If you have a Linux or Windows dedicated server, then you can install it
|
mod_harbour eshop en desarrollo
|
La gestión de usuarios y la identificación ya está funcionando desde la eshop:
[url:4d88vbcj]https://harbour.fourtech.es/modharbour_samples/eshop/index.prg?login[/url:4d88vbcj]
Os agradecemos si lo probais:
Las contraseñas no se guardan, solo sus valores MD5
Código fuente completo:
[url:4d88vbcj]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples/eshop[/url:4d88vbcj]
|
mod_harbour eshop en desarrollo
|
Impresionante Antonio. PRG corriendo en el navegador, eres un genio.
Un saludo
Javier LLoris
|
mod_harbour eshop en desarrollo
|
Es más simple de lo que parece <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
mod_harbour eshop en desarrollo
|
live demo:
[url:h9s1bmlt]https://harbour.fourtech.es/modharbour_samples/genesis/index.prg[/url:h9s1bmlt]
Full source code:
[url:h9s1bmlt]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples/genesis[/url:h9s1bmlt]
|
mod_harbour eshop en desarrollo
|
seguindo a dica do Antonio => <!-- m --><a class="postlink" href="https://github.com/FiveTechSoft/mod_harbour/wiki">https://github.com/FiveTechSoft/mod_harbour/wiki</a><!-- m --> para instalar uma [i:vnf7meg9]distro[/i:vnf7meg9] linux (subsistema)
No meu caso tenho o Windows 10 Enterprise LTSC, sistema operacional que não oferece suporte a Microsoft Store por exemplo LTSB/LTSC , como baixar as distros?
você podera baixar a distribuições nos links abaixo:
Ubuntu 18.04 - <!-- m --><a class="postlink" href="https://aka.ms/wsl-ubuntu-1804">https://aka.ms/wsl-ubuntu-1804</a><!-- m -->
Ubuntu 18.04 ARM - <!-- m --><a class="postlink" href="https://aka.ms/wsl-ubuntu-1804-arm">https://aka.ms/wsl-ubuntu-1804-arm</a><!-- m -->
Ubuntu 16.04 - <!-- m --><a class="postlink" href="https://aka.ms/wsl-ubuntu-1604">https://aka.ms/wsl-ubuntu-1604</a><!-- m -->
Debian GNU/Linux - <!-- m --><a class="postlink" href="https://aka.ms/wsl-debian-gnulinux">https://aka.ms/wsl-debian-gnulinux</a><!-- m -->
Kali Linux - <!-- m --><a class="postlink" href="https://aka.ms/wsl-kali-linux">https://aka.ms/wsl-kali-linux</a><!-- m -->
OpenSUSE Leap 42 - <!-- m --><a class="postlink" href="https://aka.ms/wsl-opensuse-42">https://aka.ms/wsl-opensuse-42</a><!-- m -->
SUSE Linux Enterprise Server 12 - <!-- m --><a class="postlink" href="https://aka.ms/wsl-sles-12">https://aka.ms/wsl-sles-12</a><!-- m -->
Fedora Remix for WSL - <!-- m --><a class="postlink" href="https://github.com/WhitewaterFoundry/WSLFedoraRemix/releases/">https://github.com/WhitewaterFoundry/WS ... /releases/</a><!-- m -->
exemplo: baixando o debian. O arquivo salvo vai ter o nome => DebianGNULinux_1-1-3-0_x64__76v4gfsz19hv4.Appx , voce poderá renomear para ex: debian.zip e colocar em uma pasta ex: c:\debian e descompactar com ex: WinRAR
despois execute o arquivo debian.exe, pronto vc tem o subsistema linux debian em seu windows <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
obs: antes de tudo 1- ative o modo desenvolvedor windows 10 2 - em programas e recursos ative Subsistema para Linux (reinicie)
pronto vc tem o debian rodando em seu prompt de comando
[img:vnf7meg9]https://uploaddeimagens.com.br/images/002/181/665/full/debian_no_prompt_de_comando.jpg?1562667131[/img:vnf7meg9]
não esqueça de instalar o apache: sudo apt-get install apache2
|
mod_harbour eshop example
|
Users management and identification is already working from the eshop:
[url:wjud8okd]https://harbour.fourtech.es/modharbour_samples/eshop/index.prg?login[/url:wjud8okd]
We appreciate if you test it
passwords are not saved, only their MD5 values
Full source code:
[url:wjud8okd]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples/eshop[/url:wjud8okd]
|
mod_harbour eshop example
|
Antônio,
There are a lot of things in your code that I don't know - AP_Method(), AP_RPuts(), AP_Args(),AP_PostPairs(), ReplaceBlocks(), hb_HGet() - I think some comments in the code could help us to understand what they do.
Is possible to do the same using MySql ?
|
mod_harbour eshop example
|
Vilian,
The docs for those functions is available from the mod_harbour wiki:
[url:2jefkqcc]https://github.com/FiveTechSoft/mod_harbour/wiki/Functions-provided-by-the-mod-Harbour[/url:2jefkqcc]
hb_HGet() is a Harbour function for hashes:
[url:2jefkqcc]https://github.com/Petewg/harbour-core/wiki/hb_H[/url:2jefkqcc]
Yes, MySQL can be used too, but for now, we are using standard DBFs <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
mod_harbour eshop example
|
Thank you <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
|
mod_harbour examples
|
live examples: (click on any .prg)
[url:3g297r0p]https://harbour.fourtech.es/modharbour_examples/[/url:3g297r0p]
source code:
[url:3g297r0p]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples[/url:3g297r0p]
|
mod_harbour examples
|
Dear Antonio ,
Simply Great ...! Can we say it is similar to JSP Servlet ?
Please provides example that calls other internal pages...!
It would be good to understand if we use [b:222d38jb]WEBPAGE , END WEBPAGE[/b:222d38jb] keyword instead OF TEMPLATE , ENDTEXT. However you may have something to use TEMPLATE , ENDTEXT keyword.
Thanks
Shridhar
|
mod_harbour examples
|
Don't miss the mod_harbour sandbox !!!
Write and execute your Harbour code directly on the web <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
[url:28iik4wg]https://harbour.fourtech.es/modharbour_examples/sandbox.prg[/url:28iik4wg]
This is a dream made true <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D -->
See how fast it runs !!!
|
mod_harbour for IIS running on Windows 2012 server
|
live demos using MVC Mercury:
[url:wn450d19]http://77.119.251.147:803/seamap/index.prg[/url:wn450d19]
[url:wn450d19]http://modharbour.sysctrlsoftware.com:39393/mod_harbour/samples/mvc_iis/seamap/index.prg[/url:wn450d19]
Full source code:
[url:wn450d19]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples/mvc_iis/seamap[/url:wn450d19]
mod_harbour IIS binaries:
[url:wn450d19]https://github.com/FiveTechSoft/mod_harbour/tree/master/IIS/bin[/url:wn450d19]
How to install mod_harbour on IIS:
[url:wn450d19]https://github.com/FiveTechSoft/mod_harbour/blob/master/IIS/readme.md[/url:wn450d19]
|
mod_harbour for IIS running on Windows 2012 server
|
From SLACK
For iis it is important to give write and read permission to the folder. / data and to any folder where you want to manage data on the hard disk.
To give permission, the user IIS_IUSRS must be selected.
|
mod_harbour for non dedicated servers
|
For those of you that have no access to a dedicated server, we have prepared a special version of mod_harbour that works as a CGI. So if you use a hosting company that will never allow to install an apache extension but does allow to install a CGI, then this mod_harbour version is for you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:3n6ud1s2]https://github.com/FiveTechSoft/mod_harbour/tree/master/cgi/linux[/url:3n6ud1s2]
We do appreciate your feedback about it
|
mod_harbour for non dedicated servers
|
Here you have it, already built, for centOS 64 bits:
[url:1iwrj8bx]https://github.com/FiveTechSoft/mod_harbour/tree/master/cgi/linux/centOS%2064[/url:1iwrj8bx]
|
mod_harbour for non dedicated servers
|
Here you have mod_harbour working from Bluehost (non dedicated server, where it is totally forbidden to install mod_harbour for Apache)
using mod_harbour CGI version:
[url:2utsrzte]https://fivetechsoft.com/cgi-bin/modharbour?info.prg[/url:2utsrzte]
[url:2utsrzte]https://fivetechsoft.com/cgi-bin/modharbour?arrays.prg[/url:2utsrzte]
Now we can run mod_harbour from non dedicated servers too !!! <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D -->
|
mod_harbour for non dedicated servers
|
Please clarify: mod_harbour CGI is an EXE, right? So it still cannot be run on most commercial web space providers, sorry. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
EMG
|
mod_harbour for non dedicated servers
|
Dear Enrico,
If the hosting company allows CGI execution, then you can run mod_harbour from it using this new mod_harbour CGI version <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
This mod_harbour CGI version is an executable fully compatible with the mod_harbour version for Apache
|
mod_harbour for non dedicated servers
|
That's exactly what I was afraid of. Most of commercial web space providers don't allow to run CGI EXE. So we cannot use mod_harbour. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
EMG
|
mod_harbour for non dedicated servers
|
Bluehost allows it, I am testing it from there <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Surely other hosting companies may allow CGI execution too. Maybe not all of them, but some may allow it for sure
We need to find how to make it work for free from Google Colab and/or GitHub and others
We need to provide such power to Harbour users <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
|
mod_harbour for non dedicated servers
|
Hello Enrico,
Just out of curiosity.
Why is a VPS or self-hosting not a solution for you?
Best regards,
Otto
|
mod_harbour for non dedicated servers
|
Usually I have to use the existing customer web spaces. I cannot tell my customers to change their providers just to allow my mod_harbour web apps to work, can I?
EMG
|
mod_harbour for non dedicated servers
|
Dear Enrico,
What providers are those ?
I am curious to check them <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
mod_harbour for non dedicated servers
|
I don't know. Each customer have your own company web space or your own provider. As an example: [url:bgezyiah]https://www.aruba.it[/url:bgezyiah]
EMG
|
mod_harbour for non dedicated servers
|
I have had servers in aruba (windows and linux) for a long time and it is where I do the tests and developments of modHarbour (with and without CGI)
|
mod_harbour for non dedicated servers
|
I'm not talking about dedicated servers but web spaces. Aruba doesn't allow to run CGI EXEs from their web spaces. Most of my customers have web spaces from various providers or company web servers that doesn't allow CGI EXE to run for company policy.
EMG
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.