tags:

views:

131

answers:

0

I don't understand why my magpie rss isn't fetching an entire rss feed. Here's what my code looks like:

// test.php
<?php require_once('modules/magpierss-0.7.22/rss_fetch.inc');
$post = fetch_rss('http://torontoseoworkshop.com/blog/feed/');
echo count($post->items);
?>

If I put test.php in my ~/public_html/tsw/ directory, the last line echoes 1. If I put test.php in ~/public_html/tsw/wordpress/wp-content/themes/tpl/ and update the require_once path, the last line echoes 2.

Why is the count($post->items) different depending on where I put my test.php? And why can't fetch_rss just give me the entire feed?

I must be missing something very obvious...