Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
Created February 25, 2022 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasG77/cf0e6193130b7993728debc34ea291c6 to your computer and use it in GitHub Desktop.
Save ThomasG77/cf0e6193130b7993728debc34ea291c6 to your computer and use it in GitHub Desktop.
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