<?php
// Set your return content type
header('Content-type: application/xml');
// Website url to open
$daurl = 'http://feeds.feedburner.com/jQueryHowto';
// Get that website's content
$handle = fopen($daurl, "r");
// If there is something, read and return
if ($handle) {
while (!feof($handle)) {
$buffer = fgets($handle, 4096);
echo $buffer;
}
fclose($handle);
}
?>
// I named the file proxy.php and made my AJAX request to this url. Here is a jQuery code example:
<script>
$("#rssFeeds").load("path/to/proxy.php", function(){
// Some callback functions
});
</script>