read rss file from external page of the wordpress directory

Posted by tatored 
read rss file from external page of the wordpress directory
November 20, 2008 03:25AM
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('./wp-load.php');
wp('feed=rss2');
}

require (ABSPATH . WPINC . '/feed-rss2.php');

?>

this is the way that i execute the wp-rss2.php in a another page, external to directory wordpress:

ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . 'wordpress/');

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 './wp-load.php' (include_path='.;C:\xampp\php\pear\;blog/') in C:\work\vlab\deploy\blog\wp-rss2.php on line 15

thanks
Re: read rss file from external page of the wordpress directory
November 20, 2008 08:18AM
Why is this a Phorum question.
Aren't you using the wrong Phorum here?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login