FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

PHP RSS Parsing

 


X3 Talk
Is there a way to check if a RSS feed www.yournamehere.com/rss.xml exists before trying to load it and then parse it?

This would be much appreciated.
MrBlueSky
Do something like this:

Code:

<?php

  if (($file = @fopen("http://www.yournamehere.com/rss.xml", "r")) == FALSE) {
      echo "Can't open";
  }
 
  // Parse RSS feed
 
?>
X3 Talk
Thanks, i'll try it out. And take 5 frih$ for your troubles.
MrBlueSky
Thanks. Let me know if there are problems.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.