- Question: What is PEAR in php? PEAR means PHP Extension and Application Repository. PEAR is a framework and distribution system for reusable PHP components. PEAR can be installed by bringing an automated wizard. Following are...
- What is Object Oriented Programming? Object-oriented programming (OOP) is a programming language model organized around objects rather than actions; Objects are instances of classes, are used to interact with one...
- Question 1: How to redirect a page to another? You can use...
- Question: Difference between array_map, array_walk and array_filter? array_map: This function applies the callback to the elements of the given arrays. $arrayData= array_map('strtolower', array('One','Two','three')); print_r($arrayData); //array ( [0] => one [1]...
- Question: How to check a variable is NULL OR empty string? var_dump($variableName); Also for compare you can use === to compare data type. Question: How can I execute an anonymous function? call_user_func(function() { echo 'anonymous function called.';...
- Question:How to Detect Request type (Get OR Post) in PHP? $method = $_SERVER['REQUEST_METHOD']; try { switch ($method) { case 'GET': /** Add your code here **/ /** Add your code here **/ break; case 'POST': /** Add your code here **/ /** Add your code here **/ ...
- Question: How JSON.parse Works? Give few examples? JSON.parse is method which is used parses a string as JSON. How to parse the string as JSON JSON.parse('{}'); // {} JSON.parse('null'); // null JSON.parse('true'); // true JSON.parse('"string"'); ...
- Question: How many ways we can retrieve the data in the result set of MySQL using PHP? Following are different ways $sqlQuery = mysql_query("SELECT id, name FROM users"); while ($row = mysql_fetch_array($result, MYSQL_BOTH)) { ...
- Question: How array_walk function works in PHP? Purpose: It is used to update the elements/index of original array. How: in array_walk, two parameter are required. 1st: original...
- Question: What is PHP? PHP is a server-side scripting language which is used to create the dynamic web pages. Question: Who is fater of PHP? Rasmus Lerdorf Question: Which language is used to Implementation? C/C++ Question:...
- Question: How to save image in directory from URL? In Below code, Just update the  $savePath and$ downloadImagePath.Script is Ready. try { $downloadImagePath='http://www.aboutcity.net/images/aboutcity.png'; $savePath = $_SERVER['DOCUMENT_ROOT']; ...
- Question: What is use of header() function in php? 1. Header is used to redirect from current page to another: header("Location: newpage.php"); 2. Header is used to send HTTP status code. header("HTTP/1.0 404 Not Found"); 3....
- What is stdClass class? stdClass is Generic empty class in PHP. OR stdClass is universal base class in PHP. Question: Why stdClass class is used? stdClass is used to create anonymous objects with properties. Question: Where it is used? When we need to create an object...
- SPDY (pronounced as speedy) is an application-layer protocol developed at Google for transporting web content. It is not replacement of HTTP. Just modifies the way HTTP requests and responses are sent over the wire. Why it is used? SPDY is used to reduce...
- Question: How to convert string to array in php? $string="cakephp and zend"; $array =explode('and',$string); print_r($array); Question: How to convert array to string in php? $array =...
- There are couples Method to avoid the parsing of HTML tags, I used following two ways. How to use XMP Tag for avoid HTML parsing, See Example Method No 1 How to use script Tag...
- Notice A notice is an advisory message like "You probably shouldn't be doing what you're doing" Execution of the script is not halted Example echo $undefinedVariable; Warning A warning is a message like "You are doing something wrong and it is...
-
- A RewriteRule can be modified by flag. Flags are included in square brackets at the end of the rule. We can also and multiple flags are separated by commas. For Example: [Flag1] //for 1...
- If you have any of following issue, then you are on right page. How to enable SSL Enabling the openssl in WampServer/xampp How to enable openssl support in XAMPP Unable to Connect to...
We are Web Technology Experts Team who provide you Important information on Web Development, Interview Questions and Answers, live project problem and their solution and online free tutorials.