FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour SOLVED : HRB give a empty page
Posts: 43
Joined: Tue Mar 25, 2008 07:22 PM
Re: HRB give a empty page
Posted: Sun Sep 19, 2021 07:35 PM
Here it is ...

Source code and inspect...

Nothing interesting I thing :/

JF Lefebvre (Jean_François)
Mafact SA (Belgium)
http://www.mafact.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: HRB give a empty page
Posted: Mon Sep 20, 2021 05:32 AM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: HRB give a empty page
Posted: Mon Sep 20, 2021 05:42 AM
JF,

Please run this:

Code (fw): Select all Collapse
function Main()

   ExecuteHrb( hb_HrbLoad( 1, hb_GetEnv( "PRGPATH" ) + "/testhrb.hrb" ) )
   ? Time()

return nil


You can easily test it using mod_harbour modpro utility: (it is what I use for quick tests)
https://www.modharbour.org/modharbour_samples/modpro/modpro.prg (change the URL to localhost)

and just change this line this way:
ExecuteHrb( hb_HrbLoad( 1, hb_GetEnv( "PRGPATH" ) + "/../testhrb.hrb" ) )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 43
Joined: Tue Mar 25, 2008 07:22 PM
Re: HRB give a empty page
Posted: Mon Sep 20, 2021 08:53 AM
SO, it work under modpro, but not directly

I'm lost...

JF Lefebvre (Jean_François)
Mafact SA (Belgium)
http://www.mafact.com
Posts: 43
Joined: Tue Mar 25, 2008 07:22 PM
Re: HRB give a empty page
Posted: Mon Sep 20, 2021 09:05 AM
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


And yes sure, let me know if you always have some thing to try ...

I'm here till 12h
JF Lefebvre (Jean_François)
Mafact SA (Belgium)
http://www.mafact.com
Posts: 43
Joined: Tue Mar 25, 2008 07:22 PM
Re: HRB give a empty page
Posted: Mon Sep 20, 2021 09:26 AM

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

JF Lefebvre (Jean_François)
Mafact SA (Belgium)
http://www.mafact.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: HRB give a empty page
Posted: Mon Sep 20, 2021 10:36 AM

Hello,
has APACHE fullaccess rights to the folder?
D:\inetpub\www\modharbour\samples

Best regards,
Otto

Posts: 43
Joined: Tue Mar 25, 2008 07:22 PM
Re: HRB give a empty page
Posted: Mon Sep 20, 2021 02:43 PM
Otto wrote:Hello,
has APACHE fullaccess rights to the folder?
D:\inetpub\www\modharbour\samples

Best regards,
Otto


Yes, I double checked all the params I could, including rigth access.

In all case, I think this was solved by mklink folder, but I have other prg wich run nicelely as prg, but give just blanck page as HRB.

I became crazy.

PS: This is IIS, not apache.
JF Lefebvre (Jean_François)
Mafact SA (Belgium)
http://www.mafact.com
Posts: 43
Joined: Tue Mar 25, 2008 07:22 PM
Re: HRB give a empty page
Posted: Mon Sep 20, 2021 03:40 PM

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 Lefebvre (Jean_François)
Mafact SA (Belgium)
http://www.mafact.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: SOLVED : HRB give a empty page
Posted: Mon Sep 20, 2021 03:54 PM

JF,

very good! :-)

Yes, AP_RPuts() has to be used instead of "?"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 43
Joined: Tue Mar 25, 2008 07:22 PM
Re: SOLVED : HRB give a empty page
Posted: Mon Sep 20, 2021 08:04 PM
Antonio Linares wrote:JF,

very good! :-)

Yes, AP_RPuts() has to be used instead of "?"


Sorry for the lost time :/

Many thanks for your helps !

JF
JF Lefebvre (Jean_François)
Mafact SA (Belgium)
http://www.mafact.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: SOLVED : HRB give a empty page
Posted: Tue Sep 21, 2021 03:10 AM

> Sorry for the lost time :/

Never mind.

I should had remembered what you found :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: SOLVED : HRB give a empty page
Posted: Tue Sep 21, 2021 03:13 AM
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 "?"
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 43
Joined: Tue Mar 25, 2008 07:22 PM
Re: SOLVED : HRB give a empty page
Posted: Tue Sep 21, 2021 06:09 AM
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 "?"


Hahaha, yes, good idea :-)
JF Lefebvre (Jean_François)
Mafact SA (Belgium)
http://www.mafact.com

Continue the discussion