sbagli a chiudere il file all'interno del ciclo di lettura
cambia questo
in questoCodice PHP:
while (!feof($sock)) {
$f .= fgets($sock);
fclose($sock);
}
Codice PHP:
while (!feof($sock)) {
$f .= fgets($sock);
}
fclose($sock);
sbagli a chiudere il file all'interno del ciclo di lettura
cambia questo
in questoCodice PHP:
while (!feof($sock)) {
$f .= fgets($sock);
fclose($sock);
}
Codice PHP:
while (!feof($sock)) {
$f .= fgets($sock);
}
fclose($sock);