Weigh-in with your opinion! Let us know what you think. Goals for SimplePie 2.

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » API Reference » SimplePie » error()

error()

Description

class SimplePie {
	error ()
}

If a SimplePie error was thrown, you can display it here. If there was a PHP error, SimplePie doesn't do anything about it.

Availability

  • Available since SimplePie 1.0.
  • Previously existed as error (property) since Beta 3.

Examples

Display the error message if it exists

$feed = new SimplePie();
$feed->set_feed_url('http://simplepie.bob');
$feed->init();
$feed->handle_content_type();
 
if ($feed->error())
{
	echo $feed->error();
}

See Also


reference/simplepie/error.txt · Last modified: 2007/06/23 18:45 (external edit)