Skip to content

Instantly share code, notes, and snippets.

@electricputty
Created August 10, 2012 11:00
Show Gist options
  • Save electricputty/3313407 to your computer and use it in GitHub Desktop.
Save electricputty/3313407 to your computer and use it in GitHub Desktop.
Moving your config and database out of the system folder
config.php
===========
<?php
include($_SERVER['DOCUMENT_ROOT'].'/assets/config/config.php');
?>
database.php
============
<?php
include($_SERVER['DOCUMENT_ROOT'].'/assets/config/database.php');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment