This commit is contained in:
Dushant Mali 2024-11-28 10:29:22 +05:30
parent 05976fe30b
commit 8d5077b144

View File

@ -1,9 +1,9 @@
<?php
include_once("includes/cached_functions.php");
$host_name = "localhost";
$database_name = "volvo";
$database_name = "volvo_live";
$database_user = "root";
$database_password = "";
$database_password = "Dushant@2611";
$port="3306";
extract($_REQUEST);
extract($_GET);
@ -140,4 +140,19 @@ if (!empty($_SESSION)) {
// }
// }
//include_once('../../log_entry.php');
//include_once('../../log_entry.php');
// Log all uncaught exceptions
set_exception_handler(function ($e) {
error_log("Uncaught Exception: " . $e->getMessage());
error_log("Stack Trace: " . $e->getTraceAsString());
});
// Log all PHP errors
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
$error = "Error [$errno]: $errstr in $errfile on line $errline";
error_log($error);
return true; // Prevent default error handler
});
?>