I would like to know what is the correct way to know when a file has information inside it.
Current code:
$myfile = fopen("app/vista/html5/encabezado/encabezado.html", "r") or die("Unable to open file!");
if ($myfile == false) {
echo "No tiene nada";
} else {
echo "Tiene algo";
}
fclose($myfile);
The only thing I'm looking for is to know if it has at least one character or line as content.