PHP Classes

File: config/config.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP URL Shortener   config/config.php   Download  
File: config/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP URL Shortener
Application to create and expand short URLs
Author: By
Last change:
Date: 11 months ago
Size: 725 bytes
 

Contents

Class file image Download
<?php

// Database Settings
define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASS", "");
define("DB_NAME", "urlshortener");

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

$st = [
   
"website_name" => "UrlShortner",
   
"description" => "Simple Url Shortener",
   
"keywords" => "url, short, url shortener, shortenrt",
   
"theme_name" => "flatly",
   
"owner_name" => "FarisCode"
];

require_once
'environment.php';

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