Que:- What are the current versions of apache, php, and mysql?
Ans:- Apache - 2.4.18 / Dec. 14, 2015
PHP - 7.0.4 / March 3, 2016
MySql - 5.6.26 /July 24, 2015
Que:- What is maximum size of a database in mysql?
Ans:- Depend on Operating System.
Que:- What is meant by MIME?
Ans:- Multipurpose Internet Mail Extensions.
WWW ability to recognize and handle files of different types is depends on the use of MIME(Multipurpose Internet Mail Extensions) Standard. The standard provide information for process the Application.
Que:- What Is a Persistent Cookie?
Ans:- Persistent Cookie is stored on the client's computer which are used to store users browsing data. It is unsecure method, because user can see the Cookie which are saved on Computers.
Que:- How to set persistent Cookie?
Ans:- Set Cookie with expiration time is called persistent cookie.
Syntax:-
setcookie('cookiename', 'cookievalue', strtotime('+30days'));
OR / Creating Cookie
Que:- What is VAR_DUMP in PHP ?
Ans:- Var_dump:- Dump information about a variable.
Ex.:- 1.
<?php
$a= array(1,2,array('a','b','c'));
var_dump($a);
?>
Output:-
array(3){[0]=>int(1), [1]=>int(2), [2]=>array(3){[0]=>string(1) "a", [1]=>string(1) "b" ,
[2]=>string(1) "c"}}
[2]=>string(1) "c"}}
Ex.:- 2.
<?php
$a=3.1;
$b=true;
var_dump($a,$b);
?>
Output:-
float(3.1)
bool(true)
Que:- What is var_export in Php?
Ans:- Output or return a parsable string representation of a variable.
Ex.:- 1.
<?php
$a=array(1,2, array("a","b","c"));
$b=true;
var_export($a,$b);
?>
Output:-
array(0=>1, 1=>2, 2=>array(0=>'a', 1=>'b', 2=>'c'))
Ex.:- 2.
<?php
$a=3.1;
$v=var_export($a,True);
echo $v;
?>
Output:-
3.1
Que:- What is function of print_r ?
Ans:- Print human-readable information about a variable.
No comments:
Post a Comment