<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>read rss file from external page of the wordpress directory</title>
        <description> Hello! I have a problem to read rss file from external page of the wordpress directory:

this is wp-rss2.php
?php

if (empty($wp)) {
require_once(&amp;#039;./wp-load.php&amp;#039;);
wp(&amp;#039;feed=rss2&amp;#039;);
}

require (ABSPATH . WPINC . &amp;#039;/feed-rss2.php&amp;#039;);

?&amp;gt;

this is the way that i execute the wp-rss2.php in a another page, external to directory wordpress:

ini_set(&amp;#039;include_path&amp;#039;, ini_get(&amp;#039;include_path&amp;#039;) . PATH_SEPARATOR . &amp;#039;wordpress/&amp;#039;);

ob_start(); # start buffer
include( wp-rss2.php );
# we pass the output to a variable
$text = ob_get_clean();

the errors:
Warning: require_once(./wp-load.php) [function.require-once]: failed to open stream: No such file or directory in C:\work\vlab\deploy\blog\wp-rss2.php on line 15

Fatal error: require_once() [function.require]: Failed opening required &amp;#039;./wp-load.php&amp;#039; (include_path=&amp;#039;.;C:\xampp\php\pear\;blog/&amp;#039;) in C:\work\vlab\deploy\blog\wp-rss2.php on line 15

thanks</description>
        <link>https://www.phorum.org/support/read.php?28,134872,134872#msg-134872</link>
        <lastBuildDate>Thu, 10 Sep 2026 05:26:07 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,134872,134874#msg-134874</guid>
            <title>Re: read rss file from external page of the wordpress directory</title>
            <link>https://www.phorum.org/support/read.php?28,134872,134874#msg-134874</link>
            <description><![CDATA[ Why is this a Phorum question.<br />
Aren&#039;t you using the wrong Phorum here?]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Thu, 20 Nov 2008 08:18:24 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,134872,134872#msg-134872</guid>
            <title>read rss file from external page of the wordpress directory</title>
            <link>https://www.phorum.org/support/read.php?28,134872,134872#msg-134872</link>
            <description><![CDATA[ Hello! I have a problem to read rss file from external page of the wordpress directory:<br />
<br />
this is wp-rss2.php<br />
?php<br />
<br />
if (empty($wp)) {<br />
require_once(&#039;./wp-load.php&#039;);<br />
wp(&#039;feed=rss2&#039;);<br />
}<br />
<br />
require (ABSPATH . WPINC . &#039;/feed-rss2.php&#039;);<br />
<br />
?&gt;<br />
<br />
this is the way that i execute the wp-rss2.php in a another page, external to directory wordpress:<br />
<br />
ini_set(&#039;include_path&#039;, ini_get(&#039;include_path&#039;) . PATH_SEPARATOR . &#039;wordpress/&#039;);<br />
<br />
ob_start(); # start buffer<br />
include( wp-rss2.php );<br />
# we pass the output to a variable<br />
$text = ob_get_clean();<br />
<br />
the errors:<br />
Warning: require_once(./wp-load.php) [function.require-once]: failed to open stream: No such file or directory in C:\work\vlab\deploy\blog\wp-rss2.php on line 15<br />
<br />
Fatal error: require_once() [function.require]: Failed opening required &#039;./wp-load.php&#039; (include_path=&#039;.;C:\xampp\php\pear\;blog/&#039;) in C:\work\vlab\deploy\blog\wp-rss2.php on line 15<br />
<br />
thanks]]></description>
            <dc:creator>tatored</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Thu, 20 Nov 2008 03:25:28 -0600</pubDate>
        </item>
    </channel>
</rss>
