Php Questions...

1.How can we know the number of days between two given dates using mysql? select DIFFDATE( NOW(), 'yyyy-mm-dd' );

2.How can I load data from a text file into a table?
The mysql provides a LOAD DATA INFILE syntax. U can load data from a file.

3.What is meant by MIME?
Multipurpose Internet Mail Extensions. WWW's ability to recognise and handle files of different types is largely dependent on the use of the MIME (Multipurpose Internet Mail Extensions) standard. The standard provides for a system of registration of file types with information about the applications needed to process them. This information is incorporated into Web server and browser software, and enables the automatic recognition and display of registered file types. ...

4.What are the difference between abstract class and interface?
Abstract class: abstract classes are the class where one or more methods are abstract but not necessarily all method has to be abstract. Abstract methods are the methods, which are declare in its class but not define. The definition of those methods must be in its extending class.
Interface: Interfaces are one type of class where all the methods are abstract. That means all the methods only declared but not defined. All the methods must be define by its implemented class.

No comments: