Site Broken in PHP 5.4 - Need help with changes (fixed)
Posted: Sat Aug 24, 2013 5:15 am
I'm trying to step through the code and find the major changes. One of the first changes I noticed is the following code no longer works as expected:
Normally I can jump in and out of PHP code to post some HTML, but now it seems if I jump out that PHP completely loses its place. It gives an error saying the last bracket was unexpected.
*edit*
I did some more research and this seems to have happened between version 5.3.27 and versions 5.4 and breaks even worse in 5.5 (warnings about SQL queries).
Code: Select all
<?php
if (!isset($_SESSION['userid'])) {
//No one is logged in, kick them back
?>
<div id="body">
<center><span class="info">You are not logged in, please wait one moment while we redirect you</span></center>
<meta http-equiv="refresh" content="2;url=./">
</div>
<?php
include('../footer.php');
exit();
}*edit*
I did some more research and this seems to have happened between version 5.3.27 and versions 5.4 and breaks even worse in 5.5 (warnings about SQL queries).