File changed time
";
return;
}
print "$f was changed on ".date( "D d M Y g:i A", filectime( $f ) )."
";
}
?>
PHP: Ajouter le contenu d’un fichier dans String
Its syntax is: string fgets (int filepointer, int length)
$fh = fopen("data.txt", "r");
while (! feof($fh)) :
$line = fgets($fh, 4096);
print $line."
";
endwhile;
fclose($fh);
?>
PHP: Lire un caractère d’un fichier
Its syntax is: string fgetc (int filepointer)
$fh = fopen("data.txt", "r");
while (! feof($fh)) :
$char = fgetc($fh);
print $char;
endwhile;
fclose($fh);
?>