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 |
What is the interface in php?
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?
what is the use of include() function when include_once() alone will enough?
How do I expire a php session after 30 minutes?
What is the scope of a variable defined in a function?
How to check your php installation?
What is the importance of "action" attribute in a html form?
How can we destroy the session, how can we unset the variable of a session?
How send email using php?
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?