Answers.Body: <p>Indeed... this will do it:</p>
  
  <pre><code>$craft = require '../other/craft/app/bootstrap.php';
  $entry = $craft-&gt;entries-&gt;getEntryById($id);
  
  echo 'Other Craft install entry title:'.$entry-&gt;title;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-19T19:33:32.007Z
Answers.Text: Because: Fatal error: Cannot redeclare craft_createFolder() (previously declared in /path/to/second/craft/app/bootstrap.php:30) in /path/to/first/craft/app/bootstrap.php on line 52
Answers.UserDisplayName: Paul
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-19T19:35:38.157Z
Answers.Text: Well... I did say it was untested. :) I think that should work, though, so that's a potential bug.  Will look into it.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-19T19:36:38.187Z
Answers.Text: Cool. I'm in a bit of a hurry, though, so will use a workaround for now.
Answers.UserDisplayName: Paul
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-16T23:10:08.773Z
Answers.Text: I supposed I went back and fixed this at one point because it works now. :)
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-19T19:30:27.963Z
Answers.LastActivityDate: 2015-10-16T23:11:15.830Z
Answers.LastEditDate: 2015-10-16T23:11:15.830Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have two instances of Craft on the same server. From within a plugin controller in Craft #1, I want to be able to get entries from Craft #2. Can this be done and if so, how?</p>
  
Tags: <plugin-development><bootstrap-craft>
Title: Is it possible to get another Craft's webApp from within a Craft plugin controller
ThreadText: # Is it possible to get another Craft's webApp from within a Craft plugin controller
  
  (Asked by: username_0 on 2015-04-19)
  
  I have two instances of Craft on the same server. From within a plugin controller in Craft #1, I want to be able to get entries from Craft #2. Can this be done and if so, how?
  
  **Tags:** plugin-development, bootstrap-craft
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-04-19. Score: 1 | Accepted answer
  
  Indeed... this will do it:
  
  ```
  $craft = require '../other/craft/app/bootstrap.php';
  $entry = $craft->entries->getEntryById($id);
  
  echo 'Other Craft install entry title:'.$entry->title;
  
  ```
  
  > **Comments:**
  > **username_0**: Because: Fatal error: Cannot redeclare craft_createFolder() (previously declared in /path/to/second/craft/app/bootstrap.php:30) in /path/to/first/craft/app/bootstrap.php on line 52  
  > **username_1**: Well... I did say it was untested. :) I think that should work, though, so that's a potential bug.  Will look into it.  
  > **username_0**: Cool. I'm in a bit of a hurry, though, so will use a workaround for now.  
  > **username_1**: I supposed I went back and fixed this at one point because it works now. :)  
  
  ---
  
  