How to enable PHP short tags?

Spread the love

Sometimes, we want to enable PHP short tags.

In this article, we’ll look at how to enable PHP short tags.

How to enable PHP short tags?

To enable PHP short tags, we add the short_open_tag setting to the php.ini file.

To add it, we write

short_open_tag=On

to set short_open_tag to On to enable short tags.

And then we restart our Apache server for the new setting to take effect.

Conclusion

To enable PHP short tags, we add the short_open_tag setting to the php.ini file.

Leave a Reply

Your email address will not be published.