开发者

Include Mediawiki in php application

开发者 https://www.devze.com 2023-03-03 07:39 出处:网络
Is there a way from my PHP application to include a single file from the MediaWiki installation, and everything would work fine?

Is there a way from my PHP application to include a single file from the MediaWiki installation, and everything would work fine? I first tried doing an iFrame, but clicking some of the links inside开发者_高级运维 the iFrame doesn't work.


It seems that only possible way to use MediaWiki engine for your own application is to install a separate instance on it on your server (source + db). Then you'll be able to use it through API.

Pros:

  • Easy to update;
  • Can be used with any application built on any platform;

Cons:

  • It's not too easy to install and maintain MediaWiki;
  • You should use external interface for it even from your script. Say, you should use CURL requests from your PHP application to your Wiki even if they are situated on one host.
  • Large overheat, 'cause you can't use only Wiki-parser.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号