PHP 5.2 -> 5.4 problem
-
I am trying to update the PHP on my web server. On my backup server I updated from 5.2 to 5.4 and the result is kind of bizarre.
The includes above worked correctly prior to the update. This is what I see when viewing the page source in my browser:
After the update I see this:
The bizarre part is that the includes get injected seemingly at random further down the page and in the middle of source that is generated by PHP code. Is there a DOCTYPE or PHP configuration setting that needs to be changed?
Thanx, >>>-----> Mike
-
I am trying to update the PHP on my web server. On my backup server I updated from 5.2 to 5.4 and the result is kind of bizarre.
The includes above worked correctly prior to the update. This is what I see when viewing the page source in my browser:
After the update I see this:
The bizarre part is that the includes get injected seemingly at random further down the page and in the middle of source that is generated by PHP code. Is there a DOCTYPE or PHP configuration setting that needs to be changed?
Thanx, >>>-----> Mike
I had not really given much thought to the server-side includes. They have always worked. I did some research though and found that SSI is essentially a separate interpreter. The order of whether SSI is included inside PHP or vise-versa matters (apparently depending on your version of PHP). I also found that comment begin and end tags are more strict after I made my updates.
While I know it is bad form, commenting out a "div" as shown above worked prior to the PHP update. After the update, the text "