1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
<?php
$requete = file_get_contents("http://www.shom.fr/ann_marees/cgi-bin/predit_ext/choixp?opt=3&jour=6&zone=11&port=DUNKERQUE&dd=01&mm=09&yyyy=2010&compute=TRUE&fuseau=1");
$requete = explode("<table", $requete);
$requete = preg_match_all("#>(.*)<#Usi", $requete[3], $matches, PREG_SET_ORDER);
if ($matches[62][1]!="&nbs") {
echo "<br />cas 1 -".$matches[62][1]."-";
$BM_HA_aprem=substr($matches[62][1],0,4);
}else {
echo "<br />cas 2 ".$matches[79][1];
$BM_HA_aprem=substr($matches[79][1],0,4);
}
?> |
Partager