PHP Classes

File: app/config/config.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP IP Logger   app/config/config.php   Download  
File: app/config/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP IP Logger
Track user IP addresses that access certain pages
Author: By
Last change:
Date: 1 year ago
Size: 498 bytes
 

Contents

Class file image Download
<?php

// Database Settings
$config = [
   
"DB_HOST" => "localhost",
   
"DB_USER" => "",
   
"DB_PASS" => "",
   
"DB_NAME" => ""
];

// Application Settings
define("SITE_URL", "http://localhost"); // Example: http://localhost/IpLogger/app
define("APP_PATH", dirname(__FILE__, 2) . DIRECTORY_SEPARATOR); // ( Don't Change );
define("LOGS_PATH", APP_PATH . "php_logs.log"); // ( Don't Change );

require_once 'environment.php';

// Autoload Composer
require_once APP_PATH . 'vendor/autoload.php';