4D v13.4

PHP GET OPTION

Home

 
4D v13.4
PHP
PHP GET OPTION

PHP GET OPTION 


 

PHP GET OPTION ( option ; value ) 
Parameter Type   Description
option  Longint in Option to get
value  Text, Boolean in Current value of option

The PHP GET OPTION command can be used to find out the current value of an option relating to the execution of PHP scripts. 

Pass a constant from the "PHP" theme in the option parameter to designate the option to be gotten. The command returns the current value of the option in the value parameter. You can pass one of the following constants:

Constant Type Value Comment
PHP Privileges Longint 1 Definition of specific user privileges relating to the execution of the script.
Possible value(s): String in the form "User:Password". For example: "root:jd51254d"
PHP Raw result Longint 2 Definition of processing mode for HTTP headers returned by PHP in the execution result when this result is of the Text type (when the result is of the BLOB type, headers are always kept).
Possible value(s): Boolean. False (default value = remove HTTP headers from result. True = keep HTTP headers.

Note: Only the user account is returned when you use the PHP Privileges option with the PHP GET OPTION command (the password is not returned).

Example  

We want to find out the current user account:

 C_TEXT($userAccount)
 PHP GET OPTION(PHP Privileges;$userAccount)
 ALERT($userAccount)

 
PROPERTIES 

Product: 4D
Theme: PHP
Number: 1060

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D v12

 
SEE ALSO 

PHP GET FULL RESPONSE
PHP SET OPTION