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 function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);
Tell me how do you define a constant?
How would you declare a function that receives one parameter name hello?
Explain what is the main difference between require() and require_once()?
How many types of array are there in php?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
In php, objects are they passed by value or by reference?
What is the use of trim in php?
What is abstraction php?
What are the difference between overloading and overriding in oops?
How to get the value of current session id?
What is include in php?
Explain the difference between $var and $$var?
How to find datatype of variable in php?
What are the 3 scope levels available in php and how would you define them?