How can we destroy the cookie?What is MySQL?What is the difference between PHP4 and PHP5? ~ Interview Questions & Answers

Tuesday, February 13, 2007

How can we destroy the cookie?

Set the cookie time in past.
Example: setcookie('Test',$i,time()-3600); // already expired time

Saturday, February 10, 2007

What is MySQL?

MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases.

Friday, February 9, 2007

What is the difference between PHP4 and PHP5?

There are several differences between PHP4 and PHP5.
1.Unified constructor and Destructor.
2.Exception has been introduced.
3.New error level named E_STRICT has been introduced.
4.Now we can define full method definitions for an abstract class.
4.Within a class we can define class constants.
5.we can use the final keyword to indicate that a method cannot be overridden by a child
Added features in PHP 5 are the inclusions of visibility, abstract and final classes and methods, additional magic methods, interfaces, cloning and typehinting.