php tag not working

php tag not working

why PHP tags not working in my application?

View Answers

December 27, 2013 at 11:51 AM

This might happen when your shortopentag is turned off. So, you will have to turn it on by changing the status of this PHP tag in php.ini file.

Here is the steps:

  • set directive shortopentag = On in your php.ini.
  • call iniset("shortopen_tag", 1); in your code;
  • add the following line to your .htaccess file:
  • phpvalue shortopen_tag 1

Hope it will work.









Related Tutorials/Questions & Answers:

Ads