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
Which is true about the singleton design pattern?
Is php easier than node?
Which function can be used to delete a file?
How to delete a file from the system?
In php, objects are they passed by value or by reference?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
Which is not a file-related function in php?
Whether php supports microsoft sql server?
What is the scope of a variable defined outside a function?
Which is a perfect example of runtime polymorphism?
How to get complete current page url in php?
What is laravel php?
What are the methods to submit form in php?
Tell me what is the difference between get and post?
What is the use of trim in php?