com-tecnick-tcexam-shared

# Procedural File: tce_functions_errmsg.php Source Location: /shared/code/tce_functions_errmsg.php ## Page Details: Handle error/warning/system messages. messagetype: message warning error #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2001-09-17
license: | GNU Affero General Public License
### F_display_db_error [line 120]
`void F_display_db_error( [bool $exit = true])`
Print the database error message. #### Tags:
uses: | F_print_error()
#### Parameters
bool | $exit | if true output a message and terminate the current script [default = true].
[ Top ] ### F_error_handler [line 134]
`void F_error_handler( int $errno, string $errstr, string $errfile, int $errline)`
Custom PHP error handler function. #### Tags:
uses: | F_print_error()
#### Parameters
int | $errno | The first parameter, errno, contains the level of the error raised, as an integer.
string | $errstr | The second parameter, errstr, contains the error message, as a string.
string | $errfile | The third parameter is optional, errfile, which contains the filename that the error was raised in, as a string.
int | $errline | The fourth parameter is optional, errline, which contains the line number the error was raised at, as an integer.
[ Top ] ### F_print_error [line 65]
`void F_print_error( [string $messagetype = 'MESSAGE'], [string $messagetoprint = ''], [bool $exit = false])`
Handle error/warning/system messages. Print a message #### Tags:
usedby: | F_error_handler()
usedby: | F_display_db_error()
#### Parameters
bool | $exit | if true output a message and terminate the current script [default = false].
string | $messagetype | messagetype: 0=no message, message; warning; error.
string | $messagetoprint | messagetoprint message to print.
[ Top ] Documentation generated on Mon, 06 Dec 2010 12:03:04 +0100 by phpDocumentor 1.4.3