Skip to content

Instantly share code, notes, and snippets.

@gillesbraun
Forked from Nut/config.inc.php
Created June 20, 2011 14:35
Show Gist options
  • Save gillesbraun/1035722 to your computer and use it in GitHub Desktop.
Save gillesbraun/1035722 to your computer and use it in GitHub Desktop.
Config Datei (im root Verzeichnis)
<?php
$CFG_Host = 'localhost';
$CFG_User = 'root';
$CFG_Password = '';
$CFG_Database = 'silexboard';
define('DB_PREFIX', '');
?>
<?php
require_once('init.php');
$FolderBase = $_SERVER['SCRIPT_NAME'];
$FolderBase = explode(basename($_SERVER['PHP_SELF']),$_SERVER['PHP_SELF']);
$FolderBase = $FolderBase[0];
echo 'http://'.$_SERVER['SERVER_NAME'].$FolderBase.'index.php';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment