Forum Moderators: open
<?php
//>relay.php
$file = $_GET['file'];
if (is_string($file) && strlen($file)) {
$fc = @file_get_contents($file);
header('Content-type: text/html');
echo ($fc) ? $fc : 'ERROR LOADING FILE';
}
?>
$.ajax({
url: 'relay.php?file='+ URL,
cache:false,
success: function(data){
alert("Data Loaded: " + data);
},
dataType:'html'
});