FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
File upload with PHP, Build an upload database for your site
PHP - BBcode Parsing
[PHP] Calling dynamic pictures
[php] can't display rss feeds using rss2html.php
Can't get strings to output correctly
PHP 4 to PHP 5 Upgrade
RSS parsers for PHP
Parse feed tags/urls using rss2html
2 php functions disabled on Server 2
Is it a bad practice?
PHP XML Parsing
[tutorial]Crear RSS en nuestra web dinamico con php+mysql
.htaccess issues with & and ? characters in title
Do religious beliefs deserve respect?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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