How to get root path of Apache

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 21 times
Been thanked: 2 times
Contact:

How to get root path of Apache

Post by Otto »

Dear Antonio,
can you also read the root path of Apache?
Kind regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 21 times
Been thanked: 2 times
Contact:

Re: How to get root path of Apache

Post by Otto »

Dear Antonio,

I have found the solution.

? 'AP_GetEnv( "DOCUMENT_ROOT" ) '
? AP_GetEnv( "DOCUMENT_ROOT" )

We should rather take advantage of the generosity of FIVETECH that we can see the source code everywhere.

I have found the functions here:

https://github.com/FiveTechSoft/mod_harbour
mod_harbour-master\source\paths.prg

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 42508
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 30 times
Been thanked: 72 times
Contact:

Re: How to get root path of Apache

Post by Antonio Linares »

very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply