Skip to content

Functions provided by the mod Harbour

FiveTech Software edited this page Jun 23, 2019 · 24 revisions

Apache API

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 ...

mod API

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
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 ...

Clone this wiki locally