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??



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

Answer / 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

More PHP Interview Questions

What is the interface in php?

0 Answers  


How can I maintain the count of how many persons have hit my site?

1 Answers   MTOG, Rushmore Consultancy,


Where do I run php code?

0 Answers  


what is the use of include() function when include_once() alone will enough?

1 Answers  


How do I expire a php session after 30 minutes?

0 Answers  






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

0 Answers  


How to check your php installation?

0 Answers  


What is the importance of "action" attribute in a html form?

0 Answers  


How can we destroy the session, how can we unset the variable of a session?

5 Answers  


How send email using php?

0 Answers  


How can I reset an array in PHP?

4 Answers   Rushmore Consultancy, TCS,


How to implement a class named dragonball. This class must have an attribute named ballcount (which starts from 0) and a method ifoundaball. When ifoundaball is called, ballcount is increased by one. If the value of ballcount is equal to seven, then the message you can ask your wish is printed, and ballcount is reset to 0. How would you implement this class?

0 Answers  


Categories