How to enable “short_open_tag” On in cPanel

[ad_1] short_open_tag is an instruction that determines whether or not PHP will recognize code written between tags. Generally, PHP users used tags to write PHP code. Moreover, it is been recommended for several years that not use the short tag “short cut” and instead to use the full tag combination. And if you want to use PHP in combination with XML, then, in that case, you can disable this option in order to use inline. It is very easy to configure php.ini file in Cpanel, below are the steps to be followed to configure the php.ini file : As usual login to your Cpanel using your user name and password. Once you login to your Cpanel you will see the home page. In home page search for the option called “PHP”. Once you search for the option, you can see the below image. Once you see the above image click on the option called “select PHP version”.  After clicking on that option, PHP selector/extensions page will appear, Like the below image. Once this page is displayed, you will see the option called “switch to PHP options” at the top and right side of the page. Click on that option after clicking that you can see the below page. In this page, you can see the option “short_open_tag”. if you want to enable this option, select for “On” option. once it is done, click on the save button to save the changes you have made. Today most of the people are using the XML formate where it uses these tags by other languages, so this will make your server to get confused and it will lead to having wrong parsing of code in the wrong context. And if you want to use PHP in combination with XML, you can disable this option in order to use inline. "Generally, in a PHP script, we use tags, short_open_tag is a configuration directive in the php.ini file. It will describe PHP whether the short form """" of PHP’s open tag should be allowed or not for coding in PHP. The php.ini will provide you to enable PHP short tags ( ). PHP.ini allows you the option to use short style opening tags for PHP code like below. [ad_2]