Home »
Ajax
,
Php Interview Questions
,
php-interview-questions-answers
» What is the use of PEAR in php?
What is the use of PEAR in php?
PMA22:32
Related Posts:
Web server compression? The best way to understand web server compression is to think of sending ZIP filesinstead of uncompressed files from your web server to your web user. Sending less dataover the network will minimize network latency and your … Read More
What line should you add to the Apache configuration file to ensure that the .php extension is recognized? This line ensures that Apache will treat files ending with the .php extension asPHP scripts:AddType application/x-httpd-php .php … Read More
sorting an array? arsort() sort() natsort() … Read More
$_GET , $_POST,$_COOKIE?? $_GET contains any variables provided to a script through the GET method. $_POST contains any variables provided to a script through the POST method. $_COOKIE contains any variables provided to a script through a… Read More
$_ENV and $_SERVER ? PHP sets several variables for you containing information about the server, the environment, and your visitor's request. These are stored in the superglobal arrays $_ENV and $_SERVER, but their availability depends on whe… Read More
count the elements of an array? sizeof($array) – This function is an alias of count() count($urarray) – This function returns the number of elements in an array. … Read More
THE DIFFERENT TYPES OF ERRORS IN PHP? 1. Notices: These are trivial, non-critical errors that PHP encounters while executing a script – for example, accessing a variable that has not yet been defined 2. Warnings: These are more serious errors – for example, a… Read More
What function can be used to encode passwords for storage in the database The md5() function creates a one-way encoding of the password. … Read More
What is the use of PEAR in php? PEAR is known as PHP Extension and Application Repository. It provides structured library to the PHP users and also gives provision for package maintenance. … Read More
What Is a Session? It is stored at server side because PHP is server side scripting language Session is stored on server side because how much time page will execute it doesn't depend on client it depends on server. Server decide the sess… Read More
Associative Arrays? You can use string values as keys. For example, you might create an arraylike this: $myStuff = array();$myStuff[“name”] = “andy”;$myStuff[“email”] = “andy@fsdsd.ca”;Print $myStuff[“name”]; Associative arrays are different t… Read More
What Is a Persistent Cookie? A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is c… Read More
What are the MySQL database files stored in system ? Data is stored in name.myd Table structure is stored in name.frm Index is stored in name.myi … Read More
What is the default session time in php and how can I change it? The default session time in php is until closing of browser … Read More
How can we get second of the current time using date function? $second = date("s"); … Read More