PHP_Timeout


PHP_Timeout{( seconds )}


 

Description


Allows you to get or set the timeout duration for PHP execution.

 

Parameters


seconds (optional)
The number of seconds before execution should timeout and return control to FileMaker. Use 0 to reset timeout to the default which is 60 seconds.

 

Return


Returns 0 when the timeout setting is updated or the current setting when no parameters are passed.

 

Errors


106 Invalid parameter; The seconds parameter must be a positive, non-zero number.

 

Example 1 - Set timeout to 5 minutes
PHP_Timeout ( 5 * 60 )
/*
Returns: 0 // No error, timeout successfully set
*/
Example 2 - Get timeout setting
PHP_Timeout
/*
Returns: 300 // Timeout setting is 300
*/