Is it possible to bootstrap a particular drupal 'settings.php' ?
I've gotten bootstrap to work with the default site only.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
I ended up using this code:
chdir('/path/to/drupal/sites/example.com/'); define('DRUPAL_ROOT', '/path/to/drupal/core'); require_once('/path/to/drupal/includes/bootstrap.inc'); drupal_override_server_variables(array('url' => 'http://example.com/')); drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
It could perhaps be more efficient but it works from crontab.