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
How to check a key exist in an array?
Is php coding easy?
Explain the syntax for ‘foreach’ loop with example.
What is the difference between require_once and require in php?
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?
What is the Pipe Symbol represented?
What are the special characters you need to escape in single-quoted stings?
what is variable scope, which variables are accessible from where and what are "undefined variable" errors?
Explain me what is the difference between explode() and split() functions?
What does isset() function?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
What is the role of 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?
Is php faster than nodejs?