I have what I hope is a simple problem that I cant seem to figure out.
I am buiding a form to let me edit my .css file and a .inc file which contains HTML
These drive the site design / look and feel
I can pull in the data into a form only in both instances the first part of the file seems to be left out
EG..
$filename = "includes/menutop.inc";
$fd = fopen($filename, "r") or
die("Cant open file");
$fstring = fread($fd, filesize($filename));
fclose($fd);
?>
<FORM>
<TEXTAREA rows=50 cols=75 name="newcss" wrap="virtual" value=
<?php echo ("$fstring"); ?></textarea>
</FORM>
Shows me my file, but the first part of the code from it is missing and it's the HTML <title> command. Same with my CSS, the <STYLE TYPE="text/css"> is left out of the text box...