0

I have problem with php code. Instead of show this code processed it treats this code as comment. Other parts of code work properly, only this one no. The second intresting thing is that when I have written ?php instead of ? website is even not showing this code as a comment. What can be a reason?

<?
    if (((isset ($_GET ["leaf"]))
    && ($_GET ["leaf"] != "news0"))
    || (!isset ($_GET ["leaf"])))
        {
        echo "<a class=\"tuco\" href=\"?node=news&amp;leaf=news0\">";
        }
    else
        {
        echo "<strong><a class=\"tuco\" href=\"?node=news&amp;leaf=news0\">";
        }
    echo "erstellen";
    if (((isset ($_GET ["leaf"]))
    && ($_GET ["leaf"] != "news0"))
    || (!isset ($_GET ["leaf"])))
        {
        echo "</a>";
        }
    else
        {
        echo "</a></strong>";
        }
    echo " | ";
    if (((isset ($_GET ["leaf"]))
    && ($_GET ["leaf"] != "news1"))
    || (!isset ($_GET ["leaf"])))
        {
        echo "<a class=\"tuco\" href=\"?node=news&amp;leaf=news1\">";
        }
    else
        {
        echo "<strong><a class=\"tuco\" href=\"?node=news&amp;leaf=news2\">";
        }
    echo "l&#246;schen";
    if (((isset ($_GET ["leaf"]))
    && ($_GET ["leaf"] != "news2"))
    || (!isset ($_GET ["leaf"])))
        {
        echo "</a>";
        }
    else
        {
        echo "</a></strong>";
        }?>

Screen

Beacze
  • 534
  • 3
  • 8
  • 24

1 Answers1

3

PHP short tags are disabled on your php.ini. Change php.ini to process short tags:

How to enable PHP short tags

Regards

Community
  • 1
  • 1
Pep Lainez
  • 949
  • 7
  • 12