';
//echo file_get_contents('http://www.1000camels.com/examples/mediaSpace/');
//exit;
$xmlString = file_get_contents($thisMedia);
/*
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, $thisMedia);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
ob_start();
curl_exec($ch);
curl_close($ch);
$xmlString = ob_get_contents();
ob_end_clean();
*/
$xmldoc = domxml_open_mem($xmlString);
$_GLOBALS['xslt_params']['CLEAN_URL_BASE'] = CLEAN_URL_BASE;
$_GLOBALS['xslt_params']['MEDIASPACE'] = MEDIASPACE;
// this shouldn't be needed - mediaSpace should use full urls - dwc
$_GLOBALS['xslt_params']['MEDIA_DIRECTORY'] = MEDIA_DIRECTORY;
$xsldoc = domxml_xslt_stylesheet_file('style/simpleGallery.xsl');
$result = $xsldoc->process($xmldoc,$_GLOBALS['xslt_params']);
$GLOBALS['CONTENT'] =& $xsldoc->result_dump_mem($result);
echo $GLOBALS['CONTENT'];
?>