What do you understand about pear in PHP?
Basically PEAR is stands for PHP Extension And Repository.PEAR is a framework and distribution system using that we can make PHP component reusable.It has huge collection of different classes.We use this for advance scripting.
Example: Database,Mail,HTTP etc.Reply
Tell me how to use COM components in PHP?
We use COM component in PHP by using that manner,
$objCom = new COM(�AddNumber.math�);
$output = $objCom ->AddTwoNum(4,5);
Tell me default session time in PHP and how can I change it?
The default session time in PHP is 14400.We can change it like that manner,
Can i convert PHP code into JAVA code?if yes,how?
Yes,We can convert PHP code into JAVA code.Like that:
echo "<script>JAVA code</script>"
Tell how we can run PHP in command line?
We can PHP in command line by using that:
What is the difference b/w isset and empty?
The main difference b/w isset and empty are given below:
isset: This variable is used to handle functions and checked a variable is set even through it is empty.
empty: This variable is used to handle functions and checked either variable has a value or it is an empty string,zero0 or not set at all.Reply
What is the different b/w session and cookies in php?
The main difference b/n session and cookies in php are given below:
1.We store cookies in client machine and sessions in server machine.
2.Sessions are secured where as cookies are unsecured.
3.In cookies we stored limited amount of data,where as using session we can stored unlimited amount of data.
4.Session can store objects where cookies can store only strings.
5.Sessions work slower as compare to cookies.
How we use ceil() and floor() function in PHP?
ceil() is use to find nearest maximum values of passing value.
floor() is use to find nearest minimum values of passing value.
How to distinguish b/n PHP and HTML??
Some main advantages between PHP and HTML are given below:
1.PHP is an server-side programing language where as HTML is an client-side programing language.
2.HTML is an static language where PHP is an dynamic language.Using PHP we can share files b/w webpages and accessing databases.
We have to still use HTML to work on PHP. Reply
Output of the code?
$objM = new M(); // Where, M is a class
$objN = $objM;
Both objM and objN are store same values.Because objM get the values from new M(); and it assign to the objN.So, we can say that both have contain same values.Reply