Spaces:
Running
Running
Download includes/config.php from vanrowin/communitypulse-hub: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/vanrowin/communitypulse-hub/resolve/main/includes/config.php
- Command line
-
hf download hf://spaces/vanrowin/communitypulse-hub/includes/config.php
-
curl -L -o config.php https://huggingface.co/spaces/vanrowin/communitypulse-hub/resolve/main/includes/config.php
401 Bytes
| ```php | |
| // Database configuration | |
| define('DB_HOST', 'localhost'); | |
| define('DB_USER', 'root'); | |
| define('DB_PASS', ''); | |
| define('DB_NAME', 'eagles_club'); | |
| // Create database connection | |
| $conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); | |
| // Check connection | |
| if ($conn->connect_error) { | |
| die("Connection failed: " . $conn->connect_error); | |
| } | |
| // Set charset | |
| $conn->set_charset("utf8mb4"); | |
| ``` |