/shared/code/tce_functions_errmsg.php

Description

Handle error/warning/system messages.

messagetype:

  • message
  • warning
  • error

  • since: 2001-09-17
  • link: www.tecnick.com
  • copyright: Copyright © 2004-2006, Tecnick.com S.r.l. - Via Ugo Foscolo n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.tecnick.com - info@tecnick.com
  • author: Nicola Asuni
Functions
F_display_db_error (line 108)

Print the database error message.

void F_display_db_error ([bool $exit = true])
  • bool $exit: if true output a message and terminate the current script [default = true].
F_error_handler (line 122)

Custom PHP error handler function.

void F_error_handler (int $errno, string $errstr, string $errfile, int $errline)
  • 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.
F_print_error (line 45)

Handle error/warning/system messages.

Print a message

void F_print_error ([string $messagetype = "MESSAGE"], [string $messagetoprint = ""], [bool $exit = false])
  • 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.

Documentation generated on Fri, 24 Nov 2006 21:16:22 +0100 by phpDocumentor 1.3.0RC3