I just installed php 5.3.1 in my linux server and now my old
work which i used to write with tags is not working at all..

Please help me out.. How can i resolve this??

Answer Posted / rekha_sri


Short tags are disabled by default.
If you want to enable short tags enable the short_open_tag
in the php.ini file. If it is off we need to give On for
enabling the short tags.
But you should use the full length tags <?php ?>.

Reasons for why we should not use the short tags,

* If you want to make your application portable, it may be
short open tags are not allowed on another server and hence
your application is not working.

* It will be removed in PHP 6.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is true about the singleton design pattern?

551


Is php easier than node?

519


Which function can be used to delete a file?

586


How to delete a file from the system?

570


In php, objects are they passed by value or by reference?

518






So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

552


Which is not a file-related function in php?

608


Whether php supports microsoft sql server?

554


What is the scope of a variable defined outside a function?

536


Which is a perfect example of runtime polymorphism?

524


How to get complete current page url in php?

555


What is laravel php?

533


What are the methods to submit form in php?

523


Tell me what is the difference between get and post?

473


What is the use of trim in php?

523