<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a MediaWiki API Instance Outside Installation Directory</title>
	<atom:link href="http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/</link>
	<description>ideas and guides from a nerdy college student</description>
	<lastBuildDate>Tue, 24 Apr 2012 13:50:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mutos</title>
		<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/comment-page-1/#comment-2246</link>
		<dc:creator>Mutos</dc:creator>
		<pubDate>Sun, 03 Apr 2011 05:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://auzigog.com/?p=222#comment-2246</guid>
		<description>Hi Jeremy,


Progressed but first issue still not solved. Seems it&#039;s while loading StartProfiler.php that there&#039;s something wrong. Never returns from the require call in WebStart.php.

require_once( &quot;$IP/StartProfiler.php&quot; );

When I include echoe() in a test version of StartProfiler.php, nothing happens, even if the echo() are just first line... Don&#039;t understand...


@+

Benoît ‘Mutos’ ROBIN
Hoshikaze 2250 Project
Sci-Fi universe</description>
		<content:encoded><![CDATA[<p>Hi Jeremy,</p>
<p>Progressed but first issue still not solved. Seems it&#8217;s while loading StartProfiler.php that there&#8217;s something wrong. Never returns from the require call in WebStart.php.</p>
<p>require_once( &#8220;$IP/StartProfiler.php&#8221; );</p>
<p>When I include echoe() in a test version of StartProfiler.php, nothing happens, even if the echo() are just first line&#8230; Don&#8217;t understand&#8230;</p>
<p>@+</p>
<p>Benoît ‘Mutos’ ROBIN<br />
Hoshikaze 2250 Project<br />
Sci-Fi universe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mutos</title>
		<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/comment-page-1/#comment-2245</link>
		<dc:creator>Mutos</dc:creator>
		<pubDate>Sun, 03 Apr 2011 04:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://auzigog.com/?p=222#comment-2245</guid>
		<description>Hi Jeremy,


Two question on your code. The first is, I just can&#039;t get past the following line :
    require ($mediawiki_root . &#039;/includes/WebStart.php&#039;);

I made sure the file is OK by displaying it, there&#039;s no error or warning message however, so I just have no clue at all to search on...

The second question, once I&#039;ll have solved the first, is  why did you create a class instead of simply executing the code ? I think it has something to do with the script belonging to an extension. I think I&#039;ll not use a class because I simply wanr to include this into a simple script to display some query results.

Thanks again for the code !


@+

Benoît ‘Mutos’ ROBIN
Hoshikaze 2250 Project
Sci-Fi universe</description>
		<content:encoded><![CDATA[<p>Hi Jeremy,</p>
<p>Two question on your code. The first is, I just can&#8217;t get past the following line :</p>
<pre>
   require ($mediawiki_root . '/includes/WebStart.php');
</pre>
<p>I made sure the file is OK by displaying it, there&#8217;s no error or warning message however, so I just have no clue at all to search on&#8230;</p>
<p>The second question, once I&#8217;ll have solved the first, is  why did you create a class instead of simply executing the code ? I think it has something to do with the script belonging to an extension. I think I&#8217;ll not use a class because I simply wanr to include this into a simple script to display some query results.</p>
<p>Thanks again for the code !</p>
<p>@+</p>
<p>Benoît ‘Mutos’ ROBIN<br />
Hoshikaze 2250 Project<br />
Sci-Fi universe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mutos</title>
		<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/comment-page-1/#comment-2244</link>
		<dc:creator>Mutos</dc:creator>
		<pubDate>Sun, 03 Apr 2011 01:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://auzigog.com/?p=222#comment-2244</guid>
		<description>Hello Jeremy,


I&#039;m making a portal page that aggregates recent changes from a phpBB, a Wordpress and a MediaWiki and so this page is very useful for me. As of now, I didn&#039;t have any clue for getting the data from the MW. Some kind folk at MW Users forum directed me to the API and I found this page...

So I&#039;ll let you know if I get to something working !


@+

Benoît &#039;Mutos&#039; ROBIN
Hoshikaze 2250 Project
Sci-Fi universe</description>
		<content:encoded><![CDATA[<p>Hello Jeremy,</p>
<p>I&#8217;m making a portal page that aggregates recent changes from a phpBB, a WordPress and a MediaWiki and so this page is very useful for me. As of now, I didn&#8217;t have any clue for getting the data from the MW. Some kind folk at MW Users forum directed me to the API and I found this page&#8230;</p>
<p>So I&#8217;ll let you know if I get to something working !</p>
<p>@+</p>
<p>Benoît &#8216;Mutos&#8217; ROBIN<br />
Hoshikaze 2250 Project<br />
Sci-Fi universe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szotsaki</title>
		<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/comment-page-1/#comment-2237</link>
		<dc:creator>szotsaki</dc:creator>
		<pubDate>Tue, 25 Jan 2011 13:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://auzigog.com/?p=222#comment-2237</guid>
		<description>Before the require() function on MediaWiki 1.16 you must define the $wgCommandLineMode variable to &quot;true&quot; to make internal API calls from CLI work.

Here it is:

$mediawiki_root = &#039;/Users/eyeRmonkey/www/mediawiki-test&#039;;
putenv(&quot;MW_INSTALL_PATH=$mediawiki_root&quot;);
$wgCommandLineMode = true;
// Initialise common code
require ($mediawiki_root . &#039;/includes/WebStart.php&#039;);</description>
		<content:encoded><![CDATA[<p>Before the require() function on MediaWiki 1.16 you must define the $wgCommandLineMode variable to &#8220;true&#8221; to make internal API calls from CLI work.</p>
<p>Here it is:</p>
<p>$mediawiki_root = &#8216;/Users/eyeRmonkey/www/mediawiki-test&#8217;;<br />
putenv(&#8220;MW_INSTALL_PATH=$mediawiki_root&#8221;);<br />
$wgCommandLineMode = true;<br />
// Initialise common code<br />
require ($mediawiki_root . &#8216;/includes/WebStart.php&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aton</title>
		<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/comment-page-1/#comment-2199</link>
		<dc:creator>aton</dc:creator>
		<pubDate>Wed, 28 Jul 2010 16:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://auzigog.com/?p=222#comment-2199</guid>
		<description>http://nopaste.info/664b72579a.html posted it here</description>
		<content:encoded><![CDATA[<p><a href="http://nopaste.info/664b72579a.html">http://nopaste.info/664b72579a.html</a> posted it here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aton</title>
		<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/comment-page-1/#comment-2198</link>
		<dc:creator>aton</dc:creator>
		<pubDate>Wed, 28 Jul 2010 16:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://auzigog.com/?p=222#comment-2198</guid>
		<description>hm seems i cannot post code, shame</description>
		<content:encoded><![CDATA[<p>hm seems i cannot post code, shame</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aton</title>
		<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/comment-page-1/#comment-2197</link>
		<dc:creator>aton</dc:creator>
		<pubDate>Wed, 28 Jul 2010 16:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://auzigog.com/?p=222#comment-2197</guid>
		<description>okay, i found a different approach now, using an xmlhttprequest from javascript:


					
				

output this (together with some html tags) after the user presses login. works perfectly for me</description>
		<content:encoded><![CDATA[<p>okay, i found a different approach now, using an xmlhttprequest from javascript:</p>
<p>output this (together with some html tags) after the user presses login. works perfectly for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aton</title>
		<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/comment-page-1/#comment-2196</link>
		<dc:creator>aton</dc:creator>
		<pubDate>Wed, 28 Jul 2010 12:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://auzigog.com/?p=222#comment-2196</guid>
		<description>hi, your code is exactly what i was looking for, but i get an error:

PHP Notice: in file /home/aton/public_html/wiki/includes/WebStart.php  on line 69: require_once(./StartProfiler.php) [function.require-once]: failed to open stream: No such file or directory

WebStart.php calls StartProfiler.php using a relative path without a path variable :/
that pretty much makes it impossible to include the file from outside, doesnt it?</description>
		<content:encoded><![CDATA[<p>hi, your code is exactly what i was looking for, but i get an error:</p>
<p>PHP Notice: in file /home/aton/public_html/wiki/includes/WebStart.php  on line 69: require_once(./StartProfiler.php) [function.require-once]: failed to open stream: No such file or directory</p>
<p>WebStart.php calls StartProfiler.php using a relative path without a path variable :/<br />
that pretty much makes it impossible to include the file from outside, doesnt it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JC</title>
		<link>http://auzigog.com/2009/01/11/creating-a-mediawiki-api-instance-outside-installation-directory/comment-page-1/#comment-2192</link>
		<dc:creator>JC</dc:creator>
		<pubDate>Thu, 08 Jul 2010 02:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://auzigog.com/?p=222#comment-2192</guid>
		<description>Thanks, this helped me a lot in a modification I am trying to do to Mediawiki.</description>
		<content:encoded><![CDATA[<p>Thanks, this helped me a lot in a modification I am trying to do to Mediawiki.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

