i just installed php 5.6.8 and my older scripts are considered as wrong, getting syntax error, unexpected end of file. On older PHP (5.2-5.3) it worked well, but now I don't know how to fix it to keep the functionality.
The basic problem is that in pages (like index.php) I use:
include_once("header.php");
include_once("some-page.php");
include_once("footer.php");
In header.php I have things like logo etc that appears on evey page so it goes like:
<html> all-the-standard-things-here <body> <div class="div_menu">
<ul id="menulist_root" class="mainlevel"><li id="menuitem_1">...</li></ul>
</div>
<div class="div_body">
<div class="div_center" >
<div id="page">
then goes standard page, html code etc and i finish with footer.php closing the divs:
</div> // end of page
</div> // end of div_center
</div> // end of div_body
etc
But the server doesn't like the end of header.php showing:
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\project\header.php on line 52 (which is the last line).
What to do?
Well, as it was working without any change on 5.3 ... it is a lot of code, but Ok, here it is. thanx for help.