ciao ragazzi devi leggere il file php che mi genera gli rss da wordpress...
wp-rss2.php:
?php
if (empty($wp)) {
require_once('./wp-load.php');
wp('feed=rss2');
}
require (ABSPATH . WPINC . '/feed-rss2.php');
?>
io eseguo questo file in una pagina esterna alla cartella del word press... pero' in questo modo:
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();
questi sono gli errori che mi da:
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
grazie