<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>

CC BY-SA 3.0
2015-04-19T19:33:32.007Z
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
Paul
CC BY-SA 3.0
2015-04-19T19:35:38.157Z
Well... I did say it was untested. :) I think that should work, though, so that's a potential bug.  Will look into it.
Brad Bell
CC BY-SA 3.0
2015-04-19T19:36:38.187Z
Cool. I'm in a bit of a hurry, though, so will use a workaround for now.
Paul
CC BY-SA 3.0
2015-10-16T23:10:08.773Z
I supposed I went back and fixed this at one point because it works now. :)
Brad Bell
CC BY-SA 3.0
2015-04-19T19:30:27.963Z
2015-10-16T23:11:15.830Z
2015-10-16T23:11:15.830Z
Brad Bell
<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>

<plugin-development><bootstrap-craft>
Is it possible to get another Craft's webApp from within a Craft plugin controller
# 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. :)  

---

