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
How is a constant defined in a PHP script?
When do you use define() and when do you use const. What are the main differences between those two?
What is the use of array_count_values() in php?
Is php dead 2019?
Which is best framework for php?
Explain Booleans in PHP?
What is the use of trim in php?
What is the difference between php traits vs interfaces?
What does a special set of tags do in php?
Which function is used to read a file removing the html and php tags in it upwork?
Is age a variable in research?
How does php and apache work?
How can we get ip address of a client in php?
Are php sessions cookies?
How to concatenate two strings together in php?