# Can we add a php page to discourse?

**URL:** <https://meta.discourse.org/t/can-we-add-a-php-page-to-discourse/60411>\
**Category:** Development\
**Created:** [2017 年 4 月 4 日午前 5:12 UTC](https://meta.discourse.org/t/can-we-add-a-php-page-to-discourse/60411 "2017-04-04T05:12:36Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2017 年 4 月 4 日午後 1:03 UTC](https://meta.discourse.org/t/can-we-add-a-php-page-to-discourse/60411/7 "2017-04-04T13:03:53Z")

</div>

AFAIK you can not run PHP code in Ruby. There may be some kind of gem, but if there is, I don’t know of it.  
On the other hand, Discourse should be able to work with non-Discourse JSON  
You would need to smooth out same origin concerns, but I don’t see any reason why it couldn’t be done.

---

_[View the full topic](https://meta.discourse.org/t/can-we-add-a-php-page-to-discourse/60411)._
