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
Difference between array_combine and array_merge?
What are the advantages of indexes in php?
What is cURL in PHP?
Tell me what are magic methods?
What is compact function php?
What is difference between array_merge and array_combine in php?
Which is better wamp or xampp?
What is cookie and why do we use it?
How to enable error reporting in php?
How is session id stored in browser?
What is the use of callback in php?
How can you compare objects in php?
What's the output of the ucwords function in this example?
Which are the best start and end tags to use?
What does the php error 'parse error in php - unexpected t_variable at line x' means?