Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Proxy to IGN actu RSS
<?php
header('Content-type: text/xml;charset=UTF-8');
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$url = 'https://geoservices.ign.fr/actualites/rss.xml';
$homepage = file_get_contents($url, false, stream_context_create($arrContextOptions));
echo $homepage;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment