How to enable PHP short tags?

后端 未结 19 2477
清酒与你
清酒与你 2020-11-21 05:29

I have a web application on a Linux server which starts with

I needed to copy this application to a windows environment and everything is working

19条回答
  •  遇见更好的自我
    2020-11-21 05:50

    If you are using xampp in windows then please do following

    1. Open XAMPP control panel.
    2. Click on CONFIG button.
    3. Go to PHP (php.ini) option.

    Find short_open_tag using ctrl+f utility

    You will found ;short_open_tag

    kindly remove the semicolon (;) from line.

    and keep it as short_open_tag = on

    Finally, restart your Apache server

提交回复
热议问题