require_once('../../inc/simplepiev11.inc'); // Set your own configuration options as you see fit. echo 'bookmarkstep is: '. $_POST[bookmarkstep] . ' and $_POST[feedurl] is: '. $_POST[feedurl]; $feed = new SimplePie(); $feed->set_feed_url($feed->sanitize($_POST['feedurl'], SIMPLEPIE_CONSTRUCT_IRI)); // Sanitize to ensure this is a URL, not bad code (e.g. XSS) $feed->set_cache_location($_SERVER['DOCUMENT_ROOT'].'/cache'); $success = $feed->init(); $feed->handle_content_type(); var_dump($feed); if ($success){ ?> get_items() as $item){ ?> echo 'sdasdsdaf';