- 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...
- 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...
- 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...
- $timestamp = strtotime(date('2014-10-25')); $dw = date( "w", $timestamp);// $dw will be 0 (for Sunday) through 6 (for Saturday) $days = array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); echo "today is...
- Zend_Cache provides a flexible approach toward caching data, including support for tagging, manipulating, iterating, and removing data. Question: What is Zend Cache? It is Inbuilt component of zend framework which is used to speed up the application...
- How to get jQuery nth Element //include...
- Now a days, we are uploading files like Profile images, Video files OR excel files in our web application. With uploading these files there are chances some user upload the .exe file (Virus) by renaming the .exe into .jpg, which can damage website. You might have added the...
- A CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a type of challenging-response test used in computer field to determine whether user is Human OR robot program. Captcha is used in website to confirm that your website is accessing by...
- Zend Profiler: It is used to display the queries executed by zend indirectly with MySql. It will show all the queries like insert, update, delete etc. Zend Profiler is very important just because it show the queries but It can help you to improve the performance of your website. See...
- CSV is a simple file format that is widely used by IT Professional, business, and all who are familar with computer. Those who use computer in day to day life, they know how to use CSV/Excel. Among its most common uses is to move tabular data between programs that naturally operate...
- .htaccess file is used for configuration on File Level/Directory Level and its supported by all webserver. Today all types of websites use htaccess technology. Following are Benefits of .htaccess Mange...
- 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...
- CURL is a library and command-line tool for transferring data using various protocols like HTTP, FTP, SCP, PUT, POST, POP3 & SMTP etc. It also used for scrapping the data from websites. We can scrap get the text as well as images with...
- In the Web Development Field, PHP Play very vital roles. PHP Enable the developer to create the custom pages. In the custom pages they can add html, CSS, Photos and Videos. In PHP we can easily used third party compoments like Emailing, PDF creation, Connect to google analytics...
- Advantage of  Stored Procedure Stored procedures can be used to maintain data integrity and enforce database policy without relying on an external program to do so. the DBA can add behavior that the application doesn't care about. For example, storing a modify date on...
- IP Address: It is unique address of the client machine by which we track the user detail requesting for some request. Full Fom of IP Address is Internet Protocol Address. today, Almost all person know about the ITp Address. This is basically used for tracking. For Example, If you...
- Who is the Father of PHP? Rasmus Lerdorf Which programming language does PHP resemble to? PHP resemble to pearl and C How can we create a database using PHP and MySQL? We can create MySQL database in php with the use of mysql_create_db ("db_name"); Is variable...
- Follow the following steps to implement caching in Core PHP? Create a folder with write permission where you store the output of page At the start of file, check whether you have already stored the output of file or not If you have already stored the output in cache, then get the contents...
- Data structure is a way of storing and organizing data in a computer so that it can be used efficiently. It provide a efficient way to manage large amounts of data efficiently, such as large databases and...
- Question: What are the current versions of apache, php, and mysql? Answer:Â PHP: php 5.5 Apache: Apache 2.2 MySQL: MySQL 5.5 Question: What are the different types of errors in php? Answer: E_ERROR: A fatal error that...
- Question: What is Difference between local variable and data members or instance variable? Answer: 1. A data member belongs to an object of a class whereas local variable belongs to its current scope. 2. A local variable is declared within the body of a function and can...
- S.No Abstract Class Interface 1 For abstract class, a method must be declared as abstract. In class, at-least one method must be declared as abstract. Variable can not be declaredIn interface, all methods by default all...
- First of all you should understand below ServerLimit:Â 16 StartServers: 2 MaxClients: 200 MinSpareThreads: 25 MaxSpareThreads: 75 ThreadsPerChild: 25 First of all, whenever an apache is started, it will start 2 child processes which is determined...
- MetaCharacter: It is special chacter(s) which have special meaning in Regular Expression. For Example: *, ., /, \, ? and ^. Sr Meta character Desctiption 1 [ ] Match any character within [phc] Means find “p†OR “h†OR “c†2 - Range ...
- Question: What is PHP? Answer:Â PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. Question: What is...
- Zend Engine is used internally by PHP as a complier and runtime engine. PHP Scripts are loaded into memory and compiled into Zend opcodes. These opcodes are executed and the HTML generated is sent to the client. The Zend Engine is an open source scripting engine, commonly...
- In this attack, a  hacker is able to execute SQL queries in your website's database. This attack is usually performed by entering text into a form field which causes a subsequent SQL query, generated from the PHP form processing code, to execute part of the content of the form field...
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.