Help with Magpierss and WordPress

My advice would be to scrap that.

Fetching RSS feeds is part of WordPress functionality. In the past it used Magpie (so no sense whatsoever in adding another copy) but it is long deprecated and currently SimplePie is used.

What this means in practice that there is fetch_feed() WordPress function that will completely handle feed retrieval and parsing. There are plenty of tutorials around on using it, starting with Codex that I linked to.