rssFeed; $this->rssFeederUrl; $this->arrCurrentNews; $this->errorMessage; } function startElement($xp,$name,$attributes) { global $item,$currentElement; $currentElement = $name; //the other functions will always know which element we're parsing if ($currentElement == 'ITEM') { //by default PHP converts everything to uppercase //echo "CURRENT ELEMENT IS ITEM
"; $item = true; // We're only interested in the contents of the item element. ////This flag keeps track of where we are } } function endElement($xp,$name) { //echo "in endelement ... name = " . $name . "
"; global $item,$currentElement,$title,$link; if ($name == 'ITEM') { // If we're at the end of the item element, display // the data, and reset the globals echo "
  • " . $title . "
  • "; $title = ''; $link = ''; $item = false; } } function characterDataHandler($xp,$data) { global $item,$currentElement,$title,$description,$link; if ($item) { //echo "in characterdatahandler ... currentelement = " . $currentElement. " DATA = " . $data . "
    "; //Only add to the globals if we're inside an item element. switch($currentElement) { case "TITLE": $title .= $data; // We use .= because this function may be called multiple // times for one element. break; case "LINK": $link.=$data; break; } } } function readFeeds() { //$fh = fopen($feed,'r'); $fh = fopen($this->rssFeederUrl,'r'); // open file for reading $xp = xml_parser_create(); xml_set_object($xp, $this); // Create an XML parser resource xml_set_element_handler($xp, "startElement", "endElement"); // defines which functions to call when element started/ended xml_set_character_data_handler($xp, "characterDataHandler"); while ($data = fread($fh, 4096)) { //echo $data; if (!xml_parse($xp,$data)) { return 'Error in the feed'; } } } function getCurrentNews() { $this->rssFeederUrl = "http://www.multivisionnaire.com/blog/?feed=rss2"; $this->readFeeds(); } }//end of class ?> MultiVisionnaire Pictures +++ International Film Sales and Distribution

    Search Catalog

    Current News

    • 1
    • 2 Recreating Dawn
      Can science bring back love?
    • 3 TKG
      Gentrification has a price
    • 4 Soldier's Lullaby
      Heroes are born on the battlefield
    • 5 House of War
      4 Days of Terror in Mumbai
    • 6 The Deep Sky
      "thought-provoking and sexy..." - San Francisco Chronicle
    • 7 Sunday Girl (4K UHD)
      A girl's guide to breakups

    Latest Releases

    / min. /

    Trailer & More>

    / min. /

    Trailer & More>

    / min. /

    Trailer & More>

    / min. /

    Trailer & More>

    / min. /

    Trailer & More>

    / min. /

    Trailer & More>

    / min. /

    Trailer & More>

    / min. /

    Trailer & More>

    / min. /

    Trailer & More>