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

How to check whether cookies are disbled or not in the browser ? If that is the case how do you handle the sessions ?

1 Answers  


What is the alternative structure for control structures?

0 Answers  


how to run PHP in command line?

8 Answers   InfoShore, Ramp Green, Xtreeme,


What are the core OOP’s concepts?

2 Answers  


How to add 301 redirects in PHP?

0 Answers  






Is php open source?

0 Answers  


!== represents what?

2 Answers  


What is the phpstorm?

0 Answers  


What is mem_cache ? How do you put a database query into that ?

5 Answers   NIIT,


Is php 7.0 stable?

0 Answers  


What are the differences between php constants and variables?

0 Answers  


Why do we use hooks?

0 Answers  


Categories