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 / 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 |
How to check whether cookies are disbled or not in the browser ? If that is the case how do you handle the sessions ?
What is the alternative structure for control structures?
how to run PHP in command line?
8 Answers InfoShore, Ramp Green, Xtreeme,
What are the core OOP’s concepts?
How to add 301 redirects in PHP?
Is php open source?
!== represents what?
What is the phpstorm?
What is mem_cache ? How do you put a database query into that ?
Is php 7.0 stable?
What are the differences between php constants and variables?
Why do we use hooks?