Buon giorno, vorrei sapere per favore come posso ovviare a questo errore..
codice:
Warning: fread() [function.fread]: Length parameter must be greater than 0 in
Quest'errore mi viene restituito in quanto, il contenuto del file che vā a leggere, č vuoto.
Ho visto sulla guida quest'esempio ma niente da fare non mi funziona...
codice:
$handle = fopen("http://www.example.com/", "rb");
$contents = "";
do {
$data = fread($handle, 8192);
if (strlen($data) == 0) {
break;
}
$contents .= $data;
} while (true);
fclose($handle);
Potete aiutarmi per favore?
Grazie mille....