4D v16.3

PHP GET OPTION

Home

 
4D v16.3
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)



See also 

PHP GET FULL RESPONSE
PHP SET OPTION

 
PROPERTIES 

Product: 4D
Theme: PHP
Number: 1060

 
HISTORY 

Created: 4D v12

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)