Search found 158 matches: getenv

Return to advanced search

Re: How does mod harbour work

Dear team, I kindly want to ask another question about "How does mod harbour work". On some occasions I get very useful error messages - like for example Error: LOCAL declaration follows executable statement operation: line:593 called from: HB_COMPILEFROMBUF, line: 0 called from: ..\sourc...
by Antonio Linares
Mon Jan 15, 2024 12:38 pm
 
Forum: mod_harbour
Topic: How does mod harbour work
Replies: 8
Views: 1188

Re: How does mod harbour work

Dear team, I kindly want to ask another question about "How does mod harbour work". On some occasions I get very useful error messages - like for example Error: LOCAL declaration follows executable statement operation: line:593 called from: HB_COMPILEFROMBUF, line: 0 called from: ..\source...
by Ruth
Mon Jan 15, 2024 9:35 am
 
Forum: mod_harbour
Topic: How does mod harbour work
Replies: 8
Views: 1188

Re: Obtener el nombre del OS o version de Windows

Saludos y buen día, Necesito conocer la version del OS que esta en ejecución, actualmente utilizo GETENV("OS"), en la mayoría indica windows_nt estoy utilizando oHttp:=CreateObject("winhttp.winhttprequest.5.1") oHttp:Open("GET","https://www.bcv.org.ve",.f.) ...
by JoseAlvarez
Wed Nov 22, 2023 11:21 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Obtener el nombre del OS o version de Windows
Replies: 7
Views: 882

Obtener el nombre del OS o version de Windows

Saludos y buen día, Necesito conocer la version del OS que esta en ejecución, actualmente utilizo GETENV("OS"), en la mayoría indica windows_nt estoy utilizando oHttp:=CreateObject("winhttp.winhttprequest.5.1") oHttp:Open("GET","https://www.bcv.org.ve",.f.) ...
by jnavas
Wed Nov 22, 2023 8:53 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Obtener el nombre del OS o version de Windows
Replies: 7
Views: 882

Re: Problems with Preview

Dear David, Please check these values remotely: MsgInfo( GetEnv( "TEMP" ) ) MsgInfo( GetEnv( "TMP" ) ) MsgInfo( GetWinDir() ) MsgInfo( oPrinter:cDir ) will tell you which one is in use as this is the code where the preview sets the ...
by Antonio Linares
Fri Nov 11, 2022 8:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problems with Preview
Replies: 14
Views: 810

Error compiling libs

... Linux ( Ubuntu 20.04 ) . It seems not working correctly when running a simple prg because apache.prg probably has an error in this code: if Empty( GetEnv( "GATEWAY_INTERFACE" ) ) QOut( "Attention: This is modharbour CGI version and has to be executed" ) QOut( "from the ...
by giuliano
Tue Oct 18, 2022 3:14 pm
 
Forum: mod_harbour
Topic: Error compiling libs
Replies: 2
Views: 385

Re: How to get root path of Apache

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/FiveTech...
by Otto
Sat Jul 30, 2022 8:40 am
 
Forum: mod_harbour
Topic: How to get root path of Apache
Replies: 2
Views: 380

Re: Check if the page called from HTTP or HTTPS

Dear Otto,

Please try checking AP_GetEnv( "HTTPS" )

best regards
by Antonio Linares
Sat Jul 30, 2022 2:22 am
 
Forum: mod_harbour
Topic: Check if the page called from HTTP or HTTPS
Replies: 2
Views: 305

Re: Guardar y Recuperar Imagen Tdolphin

Hola.. yo lo hago así: LOCAL cTempZip:=GETENV("TEMP")+"\foto.zip",uData *comprimo el archivo para que no ocupe tanto espacio Hb_ZipFile(cTempZip,"nombre del archivo, del formato que sea",9,,.T.,.T.,) *lo guardo ...
by TOTOVIOTTI
Wed Nov 10, 2021 12:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Guardar y Recuperar Imagen Tdolphin
Replies: 3
Views: 441

Re: HRB give a empty page

JF, Please run this: 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&#...
by Antonio Linares
Mon Sep 20, 2021 5:42 am
 
Forum: mod_harbour
Topic: SOLVED : HRB give a empty page
Replies: 28
Views: 2230

Re: HRB give a empty page

I continue to investigate and wrote this one ... function Test() ? ModBuildDate() ? "Hello world from a .prg file" ExecHrb( "TestHrb.hrb") return nil Function ExecHrb(cHrb, ...) Local oHrb, lResult:=.F., xResult if File( hb_GetEnv( "PRGPATH" ) + "/" + cHrb ) o...
by jfl@mafact.com
Sun Sep 19, 2021 9:06 am
 
Forum: mod_harbour
Topic: SOLVED : HRB give a empty page
Replies: 28
Views: 2230

Re: OT Will you update your PC to Windows 11

... "WMIdiag" is missing ...so my Gadget Tool does not work any more http://www.hmgforum.com/download/file.php?id=10911 b.) GETENV("USERNAME") e.g. "a" on "PC11" will give you -> "a.PC11" http://www.hmgforum.com/download/file.php?id=10912 ...
by Jimmy
Sat Sep 04, 2021 10:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: OT Will you update your PC to Windows 11
Replies: 16
Views: 1411

Re: Creating Language Switcher

...thanks a lot. this i perfect. Maybe you could explain to me what a "system environmental setting" and the "filename.prg" are? HB_GETENV( 'PRGPATH' ) // Obtains a system environmental setting AP_FileName() // returns the filename.prg provided to Apache by the client inclusive p...
by Ruth
Mon Jul 26, 2021 1:21 pm
 
Forum: mod_harbour
Topic: Creating Language Switcher
Replies: 7
Views: 635

Re: Using source on other .prgs

Dear Reinaldo, mod_harbour provides "meta commands" which are instructions that will be executed before running the requested PRG In example: Your code ... at the bottom of it: // {% LoadPrg( "extra1.prg" ) %} // {% LoadPrg( "extra2.prg" ) %} Such code will be identifie...
by Antonio Linares
Sat Jul 17, 2021 10:05 pm
 
Forum: mod_harbour
Topic: Using source on other .prgs
Replies: 3
Views: 480

Re: DOS Error 267)

Dear all,

this was the solution:

function main()
LOCAL CtMP := GETENV( "TMP" )

lMKDir(CtMP)

Kind regards and thank you for the answers!
by Iris Gesser
Fri Jun 04, 2021 9:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DOS Error 267)
Replies: 10
Views: 1067
Next

Return to advanced search