Do you know if they've specifically disallowed fsockopen, or turned off url fopen? If it's the former then try grabbing the contents of a page with
$page = file_get_contents('http://someplace.com');
And seeing if you've got any data. If you have you can use that. I haven't checked that guys code, but if you can pass in the data somewhere or mod his fsocket stuff then you're laughing.
Just try running this on your machine - it's not so long that it'll need to be an attachment so I'll just paste
<?php
define('FEED', 'http://syndication.digitalspy.co.uk/xmlcache/dsbball.xml');
define('FEED2', 'http://www.bbgossip.com/rss.xml');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>BB Gossip RSS</title>
</head>
<body>
<?php
main();
?>
</body>
</html>
<?php
function main()
{
echo 'Digispy Feed<br />'; echo implode('<br />', get_feed(FEED));
echo '<br /><br />BBGossip Feed<br />'; echo implode('<br />', get_feed(FEED2));
}
function get_feed($feed)
{
$xml = file_get_contents($feed);
if (!$xml) return false;
$p = xml_parser_create();
xml_parse_into_struct($p, $xml, $vals, $index);
xml_parser_free($p);
return decode_parsed($index, $vals);
}
// pulls the guff out of the arrays
function decode_parsed(&$index, &$vals)
{
$data = array();
// echo '<pre>'; print_r($index); print_r($vals); echo '</pre>';
foreach ($index['TITLE'] as $key => $title)
{
$data[] =
'<a href="'. $vals[$index['LINK'][$key]]['value']
. '" target="_blank" title="' . $vals[$index['DESCRIPTION'][$key]]['value'] . '">'
. $vals[$title]['value']
. '</a> + '
. $vals[$index['DESCRIPTION'][$key]]['value']
;
}
return $data;
}
?>