vorrei il vostro aiuto per il mio problema.
nel mio script prendo le date da un calenterio ed elaborandole mi appoggio ad un file file.txt dove sono contenuti i miei dati nel seguente formato:
03-01-2008 01 00
...
10-02-2008 22 01
11-03-2008 70 01
12-03-2008 38 01
//echo $yS;
$valore_di_partenza = mktime (0,0,0,$mS,$dayS,$yS);
$valore_di_fine = mktime (0,0,0,$mE,$dayE,$yE);
$buffer = file("../file.txt");
$j=0;
foreach ($buffer as $valore) {
$f=split(" ",$valore);
// dove $f[0] --> es. 03-Jan-2008
// dove $valore --> es. 01
//check start and end value ??
$temp = split ("-",$f[0]); //split della data
$day = $temp[0];
$m = $temp[1];
$y = $temp[2];
$tempo = mktime (0,0,0,$mB,$dayB,$yB);
// Non funge!!! COSA SBAGLIO?
//if ( $tempo >= $valore_di_partenza && $tempo <= $valore_di_fine) {
$x[$j]=$f[0];
$y[$j]=round(( $f[1] / ( 1024*1024 ) ),1);
$j++;
//}
}