Table of contents
Package: com\tecnick\tcexam\shared
Tags
- file: Handle error/warning/system messages.\ messagetype: - message - warning - error
- author: Nicola Asuni
- since: 2001-09-17
Constants
K_ALLOWED_ERROR_TAGS
File: tce_functions_errmsg.php line 32
public mixed K_ALLOWED_ERROR_TAGS = '<a><b><br><em><p><ol><ul><li><small><table><tr><th><td>'
Functions
F_print_error()
File: tce_functions_errmsg.php line 41
F_print_error([mixed $messagetype = 'MESSAGE' ][, mixed $messagetoprint = '' ][, mixed $exit = false ]) : mixed
Print a message
Parameters
- $messagetype : mixed = ‘MESSAGE’: (string) Type of message: 0=no message, message; warning; error.
- $messagetoprint : mixed = ‘’: (string) message to print.
- $exit : mixed = false: (bool) if true output a message and terminate the current script [default = false].
F_display_db_error()
File: tce_functions_errmsg.php line 114
F_display_db_error([mixed $exit = true ]) : mixed
Parameters
- $exit : mixed = true: (bool) if true output a message and terminate the current script [default = true].
F_error_handler()
File: tce_functions_errmsg.php line 129
F_error_handler(mixed $errno, mixed $errstr, mixed $errfile, mixed $errline) : mixed
Parameters
- $errno : mixed: (int) The first parameter, errno, contains the level of the error raised, as an integer.
- $errstr : mixed: (string) The second parameter, errstr, contains the error message, as a string.
- $errfile : mixed: (string) The third parameter is optional, errfile, which contains the filename that the error was raised in, as a string.
- $errline : mixed: (int) The fourth parameter is optional, errline, which contains the line number the error was raised at, as an integer.
F_url_exists()
File: tce_functions_errmsg.php line 153
F_url_exists(mixed $url) : Returns
Parameters
- $url : mixed
Return values
Returns —
TRUE if the URL exists; FALSE otherwise.
F_file_exists()
File: tce_functions_errmsg.php line 181
F_file_exists(mixed $filename) : Returns
Checks whether a file or directory exists. Only allows some protocols and local files.
Parameters
- $filename : mixed
Return values
Returns —
TRUE if the file or directory specified by filename exists; FALSE otherwise.