How to enable php short tags with .htaccess or with php.ini

Posted: February 13, 2014 in Database, Must Watch, Php
Tags: , ,

Sometimes when we don’t have access to modify configurations on server like in php.ini file and we still need to enable short tags for our php code. We can do it by .htaccess file. If you have not created any .htaccess file yet, create one in root directory of your website and add

php_value short_open_tag 1

That’s it for .htaccess file.

Now if you want to enable that using php.ini and if you can…

just set


in php.ini at server and you are done.. 😀




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s