The REX executor (rex.php) offers the ability to make requests to a REX client via HTTP.
An example script calling REX with the relevant variables is provided in the download package as index.php.
REX options (as detailed in the
section of the documentation are set through HTTP variables (using either GET or POST).
If a specific option or variable is not found then it is ignored.
HTTP Option Variables
Filenames to Execute
If set to 1 will turn on debug output from the executor
If set to 1 will load the contents of common HTTP environment variables ($_SERVER, $_REQUEST, $_POST, $_GET and $_COOKIE) into REX environment variables
If set to 1 will continue executing files after an error has occurred
The REX framework won't output syntax or other parse errors if set to 0
The rex executor won't output errors encountered if set to 0
Set the base to the directory specified in the variable
Pass the variable rex_filename either as a single variable or as an array i.e. rex_filename=file1.rex rex_filename=file2.rex
Stack and Environment Variables
To set stack variables pass an array of rex_set for the variable names with the values in rex_val corresponding for each entry. For example rex_set=hello and rex_val=world will set the variable hello to equal world.
Environment variables use exactly the same system but with the names rex_env_set and rex_env_val.