Hi all,
Seemingly there is no support for posting new articles via api.php (yet). Too bad Yurik got stuck on EditPage.php, it seems to be a "hairy ball" to swallow to fix that piece of code, especially for a newbie on both MediaWiki and PHP like me. Hopefully someone is working on it though.
In the mean time, what would be the simplest way to enable api-like posting on a hosted server?
I noticed that there's some sort of support for external browsers which transfers data from local disk into the browser form and then submits the text, but how was that done "under the hood"?
At first I only need a "quick and dirty" way to post on my own (hosted) wikis. I would also have some use for a temp solution for use on my local network machines (having a web of wikis to shuffle stuff between). All suggestions are welcome.
Regards,
// Rolf Lampa
PS: Btw, has the development on the "official api" stalled? (I really would if I could, but cleaning up EditPage.php isn't exactly a "starter"...).
2007/2/3, Rolf Lampa rolf.lampa@rilnet.com:
In the mean time, what would be the simplest way to enable api-like posting on a hosted server?
You could try
Fernando Correia wrote:
2007/2/3, Rolf Lampa rolf.lampa@rilnet.com:
In the mean time, what would be the simplest way to enable api-like posting on a hosted server?
You could try
Yes, I looked at this one, but I don't have root access to my (hosted) server to set up perl and SOAP.
Regards,
// Rolf Lampa
2007/2/3, Rolf Lampa rolf.lampa@rilnet.com:
Yes, I looked at this one, but I don't have root access to my (hosted) server to set up perl and SOAP.
I understand, but I think it can be done.
Snoopy is a class that you can upload anywhere.
And there may be already support for PEAR SOAP on your server. If not, they may be willing to setup it, if they already have other PEAR extensions installed that allow MediaWiki to work.
Fernando Correia wrote:
2007/2/3, Rolf Lampa rolf.lampa@rilnet.com:
Yes, I looked at this one, but I don't have root access to my (hosted) server to set up perl and SOAP.
I understand, but I think it can be done.
Snoopy is a class that you can upload anywhere.
And there may be already support for PEAR SOAP on your server. If not, they may be willing to setup it, if they already have other PEAR extensions installed that allow MediaWiki to work.
I will check this up a bit closer next week. Thank you for your advice, it is very much appreciated.
What I will need in any case (long term) is a "as direct as possible solution" with minimal overhead. I need a solution which can act a bit like a "synchronizer" with reasonable performance. But not only that, I also need to be able to auto generate wast numbers of articles (not WP related) on many wiki installations in one go (and I prefer doing it on as "high level of abstraction" as possible). And the solution must work on (any) hosted servers as well as intranets. Asf.
Hm, I really need a complete api.php. Didn't I already say that that's exactly what is needed in order to make Mediawiki really really interesting for enterprises? So true so true. Then one could also rather easily "wrap" the entire Mediawiki in order to provide with (its current inherent lack of) access security.
However, is there any code in your solution (or other places/hints) which could be of interest to me if I eventually will have to write my own "very special" editapi.php? (I felt a bit lost in the EditPage.php).
Regards,
// Rolf Lampa
2007/2/3, Rolf Lampa rolf.lampa@rilnet.com:
However, is there any code in your solution (or other places/hints) which could be of interest to me if I eventually will have to write my own "very special" editapi.php? (I felt a bit lost in the EditPage.php).
Sorry, but I don't think so. What I do is just to open the web form, fill it and submit. It is kind of slow and not so reliable, so I don't think it is the solution to your demanding needs.
Maybe some sort of database replication would do.
mediawiki-l@lists.wikimedia.org