2020-03-04 17:34:26 +01:00

15 lines
297 B
PHP

<?php
$url = $_POST["rssURL"];
if ($url != ""){
$monRSSDoc = new DOMDocument();
if ($monRSSDoc->load($url)){
header('Content-Type: text/xml');
echo $monRSSDoc->saveXML();
} else {
echo "erreur de lecture";
}
} else {
echo "URL vide";
}
?>