Skip to content

Commit

Permalink
Removed debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaxii committed Jul 12, 2024
1 parent 5b2cad6 commit c569d32
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Models/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ class Db
private PDO $connection;

public function __construct($credentialsFilePath) {
// Print the credentialsFilePath
print_r($credentialsFilePath);

// Determine the full expected path
$fullExpectedPath = __DIR__ . DIRECTORY_SEPARATOR . $credentialsFilePath;
print_r("Expected full path is: " . $fullExpectedPath);

// Print out the entire file path from root of the computer
$realPath = realpath($credentialsFilePath);
if ($realPath !== false) {
print_r("The real path is: " . $realPath);
} else {
print_r("The real path could not be determined. The file may not exist.");
}

$credentials = parse_ini_file($credentialsFilePath);
$this->host = $credentials['host'];
$this->database = $credentials['database'];
Expand Down

0 comments on commit c569d32

Please sign in to comment.