Source code and inspect...
Nothing interesting I thing :/


Please send me an email when you are online to connect to your PC using AnyDesk
I would like to do some tests on your PC if you don't mind it
function Main()
  ExecuteHrb( hb_HrbLoad( 1, hb_GetEnv( "PRGPATH" ) + "/testhrb.hrb" ) )
  ? Time()
return nil
Antonio Linares wrote:Please send me an email when you are online to connect to your PC using AnyDesk
I would like to do some tests on your PC if you don't mind it
Whoawww, it work from the folder "modharbour_samples" wich is a link folder
but not if I use a direct folder like "samples" I created under the root of the site.
I already had a similar problem with IIS and folder.
For example, I can't map a virtual folder form my D:\inetpub\www\modharbour\samples to e:\modharbour\samples
It launch the prg, but do not execute it.
So something similar here...
prg works fine from a virtuel folder under D:\inetpub\www\modharbour\samples to D:\inetpub\www\modharbour\samples
but not hrb.
creating a link "folder modharbour_samples" to e:\modharbour\samples
and adding a virtual folder to it work fine either for prg as hrb.
in the meantime this is a solution for me.
Strange, but working .
Thanks for your help and patience...
JF
Hello,
has APACHE fullaccess rights to the folder?
D:\inetpub\www\modharbour\samples
Best regards,
Otto
Otto wrote:Hello,
has APACHE fullaccess rights to the folder?
D:\inetpub\www\modharbour\samples
Best regards,
Otto
OUCHHH SOLVED ...
Very simple at all ...
? "Hello word"
does nothing in HRB
whilst
AP_RPuts( "Hello word" )
Work fine
My mistake clearly as the testhrb.prg was written correctly before I rewrote it :/
Thinking about it I should have seen it immediatly because compiling with harbour.exe cannot change ? to AP_RPUTS() function ...
So I tested now a medium app with ADS and many call to my internal library successfully.
JF,
very good! ![]()
Yes, AP_RPuts() has to be used instead of "?"
Antonio Linares wrote:JF,
very good!
Yes, AP_RPuts() has to be used instead of "?"
> Sorry for the lost time :/
Never mind.
I should had remembered what you found ![]()
// IMPORTANT: Use AP_RPuts() instead of "?"
Antonio Linares wrote:Updated testhrb.prg so we don't forget it:
https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/testhrb.prg
// IMPORTANT: Use AP_RPuts() instead of "?"