Bonjour;
j'ai un erreur :Warning: fopen(http://www.islamicfinder.org/prayer_...mpleFormat=xml) [
voila f_open.php:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
    $url = "http://www.islamicfinder.org/prayer_service.php?country=mauritania&city=nouakchott&state=&zipcode=&latitude=18.0864&longitude=-15.9753&timezone=0&HanfiShafi=1&pmethod=1&fajrTwilight1=10&fajrTwilight2=10&ishaTwilight=&ishaInterval=30&dhuhrInterval=1&maghribInterval=1&dayLight=1&simpleFormat=xml";
 
    // Ouverture du fichier
    $fp = fopen($url, "r");
    if (!$fp) die("Impossible d'ouvrir le fichier XML");
 
    // Lecture ligne par ligne
    while ( $ligneXML = fgets($fp, 1024)) {
        // Affichage "brut" de la ligne convertie en HTML
        echo htmlEntities($ligneXML)."<br />";
    }
 
    fclose($fp);
?>
Mon objective cet d'afficher le contenu d $url dans un tableau en php
Merci d'avance pour votre aide