Salut,
je souhaite récupérer toute la ligne "METAR:" de cette page :
http://www.flightsimaviation.com/db/airports/EICK
J'ai fais ce code:
Mais j'obtiens une page blache,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <?php $str = file_get_contents('http://www.flightsimaviation.com/db/airports/EICK'); if (preg_match('#METAR: ([-:a-z0-9]+)#', $str, $match)) { echo $match[1]; } ?>
Merci de votre aide![]()








Répondre avec citation
Partager