Skip to content

Instantly share code, notes, and snippets.

@remkus
Created December 7, 2012 13:17
Show Gist options
  • Select an option

  • Save remkus/4233223 to your computer and use it in GitHub Desktop.

Select an option

Save remkus/4233223 to your computer and use it in GitHub Desktop.
wp-config.php & local-config.php & PressUp Box
<?php
if ( file_exists( dirname( __FILE__ ) . '/local-config.php' ) ) {
include( dirname( __FILE__ ) . '/local-config.php' );
define( 'WP_LOCAL_DEV', true );
} else {
define( 'DB_NAME', $_SERVER["DB_NAME"] );
define( 'DB_USER', $_SERVER["DB_USER"] );
define( 'DB_PASSWORD', $_SERVER["DB_PASSWORD"] );
define( 'DB_HOST', 'localhost' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment