<?php
$myFile = "alert/alert.txt";
$fh = @fopen($myFile, 'r');
if(!feof($fh)) {
$theData = fgets($fh);
fclose($fh);
?>
<center><div id="alert">
<?php echo $theData; ?>
</div></center>
<?php
}
else {
fclose($fh);
}
?>
Its more like the div wont work haha. I want it so if the text file is empty the div and everything doesn't show...
