http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/
if ( file_exists( dirname( __FILE__ ) . '/local- config.php' ) ) { include( dirname( __FILE__ ) . '/local-config.php' ); define( 'WP_LOCAL_DEV', true ); } else { // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ }