Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Is it necessary to use closing tag in php?sometime without
closing tag things work.why?

Answers were Sorted based on User's Feedback



Is it necessary to use closing tag in php?sometime without closing tag things work.why?..

Answer / prashant

This isn't exactly a bug. PHP doesn't require the closing
tag (it is assumed when the file ends). Not specifying the
closing ?> helps prevent accidents like additional
whitespace which will cause session initialization to fail
("headers already sent").

Is This Answer Correct ?    10 Yes 2 No

Is it necessary to use closing tag in php?sometime without closing tag things work.why?..

Answer / ankur

some times session are not expired or logout then we find
that type of situation.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More PHP Interview Questions

What is php default argument?

0 Answers  


How do I run a php file?

0 Answers  


How to create a session? How to set a value in session?

0 Answers  


Suppose your zend engine supports the mode <? ?> Then how can you configure your php zend engine to support <?php ?> Mode ?

0 Answers  


what do you mean by php.ini file ?????????

2 Answers   Samsung,


What is the difference between runtime exception and compile time exception?

0 Answers  


Explain me what is x+ mode in fopen() used for?

0 Answers  


How to Pass JSON Data in a URL using CURL in PHP?

0 Answers  


How big is varchar max?

0 Answers  


Which is better mysql or sql?

0 Answers  


Explain what is the static variable in function useful for?

0 Answers  


What is difference between Method overriding and overloading in PHP?

0 Answers  


Categories