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