How to get root path of Apache

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

How to get root path of Apache

Postby Otto » Sat Jul 30, 2022 8:00 am

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: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: How to get root path of Apache

Postby Otto » Sat Jul 30, 2022 8:40 am

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
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: How to get root path of Apache

Postby Antonio Linares » Sat Jul 30, 2022 5:26 pm

very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 1 guest