Created
March 16, 2011 19:53
-
-
Save zroger/873181 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* This is a modified version of index.php, to be used with phpsh. | |
*/ | |
/** | |
* Root directory of Drupal installation. | |
*/ | |
define('DRUPAL_ROOT', getcwd()); | |
require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; | |
// Fake a minimal $_SERVER array. | |
$_SERVER['REMOTE_ADDR'] = '127.0.0.1'; | |
$_SERVER['SCRIPT_NAME'] = 'index.php'; | |
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment