Voilà j'aimerais lire un fichier au format grib (binaire compréssée).
Voilà mon code.
CODE
<?php
$fa = fopen("http://dd.weatheroffice.ec.gc.ca/grib/public/lores/CMC_glb_00/CMC_glb_ABSV_ISBL_500_latlon2x2_2005090600_P000.grib", "rb");
$contenu=fpassthru($fa);
//
echo "$contenu";
exit;
?>
$fa = fopen("http://dd.weatheroffice.ec.gc.ca/grib/public/lores/CMC_glb_00/CMC_glb_ABSV_ISBL_500_latlon2x2_2005090600_P000.grib", "rb");
$contenu=fpassthru($fa);
//
echo "$contenu";
exit;
?>
Quand je lance le script j'obtient une combinaison de lettre,chiffre,caractères très bizard.
J'espère que vous pourrez m'aider.
Bien amicalement.