4D v14.3

PHP GET FULL RESPONSE

Home

 
4D v14.3
PHP
PHP GET FULL RESPONSE

PHP GET FULL RESPONSE 


 

PHP GET FULL RESPONSE ( stdOut {; errLabels ; errValues} {; httpHeaderFields {; httpHeaderValues}} ) 
Parameter Type   Description
stdOut  Text variable, BLOB variable in Contents of stdOut buffer
errLabels  Text array in Labels of errors
errValues  Text array in Values of errors
httpHeaderFields  Text array in Names of HTTP headers
httpHeaderValues  Text array in Values of HTTP headers

The PHP GET FULL RESPONSE command lets you obtain additional information about the response returned by the PHP interpreter. This command is particularly useful in the case of an error occurring during execution of the script. 

The PHP script can write data in the stdOut buffer (echo, print, etc.). The command returns the data directly in the stdOut variable and applies the same conversion principles as described in the PHP Execute command.

The synchronized errLabels and errValues text arrays are filled when the execution of the PHP scripts causes errors. These arrays provide information in particular on the error origin, script and line. These two arrays are inseparable: if errLabels is passed, errValues must be passed as well. 

Since exchanges between 4D and the PHP interpreter are carried out via FastCGI, the PHP interpreter functions as if it were called by an HTTP server and therefore sends HTTP headers. You can recover these headers and their values in the httpHeaderFields and httpHeaderValues arrays.

 
PROPERTIES 

Product: 4D
Theme: PHP
Number: 1061

 
HISTORY 

Created: 4D v12
Modified: 4D v12.1

 
SEE ALSO 

PHP Execute
PHP GET OPTION

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)