Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

PHP_Timeout{( seconds )}


 

Description


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

 

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.

 

Code Block
languagephp
themeEclipse
titleExample 1 - Set timeout to 5 minutes
PHP_Timeout ( 5 * 60 )
/*
Returns: 0 // No error, timeout successfully set
*/


Code Block
languagephp
themeEclipse
titleExample 2 - Get timeout setting
PHP_Timeout
/*
Returns: 300 // Timeout setting is 300
*/