-
Notifications
You must be signed in to change notification settings - Fork 44
Functions provided by the mod Harbour
FiveTech Software edited this page Apr 24, 2021
·
24 revisions
Name | Description | Example |
---|---|---|
MH_Body() | Returns the request body as a string | ... |
MH_Echo( uValue ) | Sends a value, converted into a string, to the client. Returns nil | ... |
MH_FileName() --> cFileName | returns the filename.prg provided to Apache by the client | ... |
MH_Query() --> cArgs | returns the args provided to Apache by the client if any | ... |
MH_Method() | returns "GET" or "POST" according to the client request | ... |
MH_UserIP() --> cUserIP | returns the IP, as string, of the client | ... |
MH_HeadersIn() --> Hash | returns a hash with all headers pairs, key and value | ... |
MH_GetPairs() --> Hash | returns a hash with all GET pairs, key and value | ... |
MH_PostPairs() --> Hash | returns a hash with all POST pairs, key and value | ... |
MH_SetContentType( cType ) | sets the type of the response page | ... |
MH_MWrite( cKey, cValue ) | sets a shared key value for all instances | ... |
MH_MRead( cType ) | reads a shared key value for all instances | ... |
Name | Description | Example |
---|---|---|
AP_Body() | Returns the request body as a string | ... |
AP_RPuts( uValue ) | Sends a value, converted into a string, to the client. Returns nil | ... |
AP_FileName() --> cFileName | returns the filename.prg provided to Apache by the client | ... |
AP_Args() --> cArgs | returns the args provided to Apache by the client if any | ... |
AP_Method() | returns "GET" or "POST" according to the client request | ... |
AP_UserIP() --> cUserIP | returns the IP, as string, of the client | ... |
AP_HeadersIn() --> Hash | returns a hash with all headers pairs, key and value | ... |
AP_GetPairs() --> Hash | returns a hash with all GET pairs, key and value | ... |
AP_PostPairs() --> Hash | returns a hash with all POST pairs, key and value | ... |
AP_SetContentType( cType ) | sets the type of the response page | ... |
Name | Description | Example |
---|---|---|
Execute( cCode, ... ) | Compiles and executes PRG code, using optional ... parameters (compilation flags) | ... |
ValToChar( uValue ) | Turns any value into a string | ... |
GetErrorInfo( oError ) | returns all the oError info as a multiples lines string | ... |
InlinePRG( cText ) | search for <prg? ... ?> blocks and execute them, replacing them with the returned value | |
LoadHrb( cHrbFileName ) | load a HRB file. It can be used as a "meta" command too // {% ... %} | |
MRead( cName ) | it loads a shared memory block by its name | ? MRead( "pwd" ) |
MWrite( cName, cText ) | it creates a new shared memory block given a name and some content | MWrite( "pwd", "my password" ) |
ReplaceBlocks( @cCode, [cStartBlock], [cEndBlock] ) | locates some blocks and macro evaluate them and returns .T. if blocks found and replaced | ... |
PathBase( [cPathFileName] ) | returns the computer folder where the app is located, or where a file is located | ... |
PathUrl() | returns the url of the app | ... |
Include( [cPathFileName] ) | includes a file from the computer relative to where the app is located | ... |
SetCookie( cName, cValue, [nSecs], [cPath], [cDomain], [lHttps], [lOnlyHttp] ) | creates a cookie | ... |
GetCookies() | retrieves all cookies as a hash | ... |
ModBuildDate() | retrieves mod_harbour build date | ... |