Home > Software engineering >  I've upgraded my php but <? ?> codes started to not work?
I've upgraded my php but <? ?> codes started to not work?

Time:03-13

I've upgraded my php. But all of sudden none of my code is working now. It shows me <? ?>. PHP tags suddenly started to not work. Why, and how can I fix it?

CodePudding user response:

The solution is easy. I'll share it but let me first tell you that using <? ?> short tags are not suggested.

Please from now on try to use full <?php ?> tags.

And solution is short_open_tag = On in your php.ini

  •  Tags:  
  • web
  • Related