php tag not working

Ads

 
 

Share on Google+Share on Google+

Java Coder
php tag not working
1 Answer(s)      3 years and 10 months ago
Posted in : PHP

why PHP tags not working in my application?

Ads
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.


Ads









Related Tutorials/Questions & Answers:

Ads

 
Advertisement null

Ads