I updated PHP on my server to 5.3.17, which is the newest stable version.
For some reason, this echo statement is producing unexpected results:
<?
echo ('<p style="color:#808080;">Hello, <em>'.$_SESSION["user"].'</em>');
?>
Result:
Hello, '.$_SESSION["user"].';
Thanks for any input!
You probably don't have short_open_tags
enabled. Use the full open tag (<?php
) instead, or turn it on in php.ini
.