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

How is a constant defined in a PHP script?

539


When do you use define() and when do you use const. What are the main differences between those two?

577


What is the use of array_count_values() in php?

539


Is php dead 2019?

541


Which is best framework for php?

563






Explain Booleans in PHP?

634


What is the use of trim in php?

525


What is the difference between php traits vs interfaces?

489


What does a special set of tags do in php?

550


Which function is used to read a file removing the html and php tags in it upwork?

493


Is age a variable in research?

488


How does php and apache work?

535


How can we get ip address of a client in php?

542


Are php sessions cookies?

509


How to concatenate two strings together in php?

562