-
Notifications
You must be signed in to change notification settings - Fork 45
Functions provided by the mod Harbour
FiveTech Software edited this page Mar 4, 2020
·
24 revisions
Name | Description | Example |
---|---|---|
AP_RPuts( uValue ) | Sends a value, converted into a string, to the client. Returns the number of bytes sent or -1 if there is an error | ... |
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_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 | |
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 | ... |