I'm having a real tough time with this one, and really could use some help. I am using a php code snippet to pull an XML file from a remote server, and parse it onto my page. I had this working on a previous version of the site running 4.6, but now, with my new server and upgrade to 4.7, it's saying that it can't read the file. My code is thus:
This is the code snippet that is on my page.
<?php
include $_SERVER['DOCUMENT_ROOT'] ."/lib/parser.class.php";
if ( $_GET['rss'] )
{
$pattern = '/^xml/';
preg_match( $pattern, substr( $_GET['rss'], 3 ), $matches, PREG_OFFSET_CAPTURE );
if ( !empty( $matches ) )
{
header( "Location: ". $_GET['rss'] ); /* Redirect browser */
}
else
{
$rssDefault = $_GET['rss'];
parseFeed($rssDefault);
$GLOBALS['getRequest'] = true;
}
}
?>
<?php
$rssDefault = "http://www.wpg.cc/stl/CDA/RSS/homepage/1,1076,691-0,00.xml";
parseFeed($rssDefault);
?>
This is the parser.class.php file:
<?php
include "readingRoomTitleCondig.php";
/* ---------- [ Define Globals ] ---------- */
$GLOBALS['readingRoom'] = $readingRoom;
$GLOBALS['readingRoomFeed'] = 'http://www.wpg.cc/stl/CDA/RSS/channel/1,1075,691-314,00.xml';
$GLOBALS['title'] = '
replace
';
$GLOBALS['link'] = 'read more';
$GLOBALS['description'] = '
replace
';
$GLOBALS['headline'] = '
replace
';
$GLOBALS['teaser'] = '
replace
';
$GLOBALS['body'] = '
replace