The Complete Project Source Code Platform

Kashipara.com is a community of ONE million programmers and students, Just like you, Helping each other.Join them. It only takes a minute: Sign Up

Job Resume Template

popular php Job Interview Questions And Answers


Why don't preparation your interviews. Best and top asking questions php questions and answers. Prepare your job php interview with us. Most frequently asked questions in php interview. Top 10 most common php interview questions and answer to ask. php most popular interview question for fresher and experiences. We have good collection of php job interview questions and answers. Ask interview questions and answers mnc company.employee ,fresher and student. php technical questions asking in interview. Complete placement preparation for major companies tests and php interviews,Aptitude questions and answers, technical, interview tips, practice tests, assessment tests and general knowledge questions and answers.


Free Download php Questions And Answers Pdf.


popular php FAQ php Interview Questions and Answers for Experiences and Freshers.



What is PHP's mysqli Extension?

The mysqli extension, or as it is sometimes known, the MySQL improved
extension, was developed to take advantage of new features found in MySQL
systems versions 4.1.3 and newer. The mysqli extension is included with PHP
versions 5 and later.
The mysqli extension has a number of benefits, the key enhancements over the
mysql extension being:
=>Object-oriented interface
=>Support for Prepared Statements
=>Support for Multiple Statements
=>Support for Transactions
=>Enhanced debugging capabilities
=>Embedded server support

php interview questions and answers.

php   2013-10-04 10:58:35

what are magic methods?

Magic methods are the members functions that is available to all the instance of class Magic methods always starts with "__". Eg. __construct All magic methods needs to be declared as public To use magic method they should be defined within the class or program scope Various Magic Methods used in PHP 5 are:
__construct() __destruct() __set() __get() __call() __toString() __sleep()
__wakeup() __isset() __unset() __autoload() __clone()

php interview questions and answers.

php   2013-07-15 11:51:47

in PHP for pdf which library used?

The PDF functions in PHP can create PDF files using the PDFlib library With version 6, PDFlib offers an object-oriented API for PHP 5 in addition to the function-oriented API for PHP 4. There is also the » Panda module. FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the
PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs. FPDF requires no extension (except zlib to activate compression and GD for GIF support) and works with PHP4 and PHP5.

php interview questions and answers.

php   2013-07-15 11:50:02

what is PDO ?

The PDO ( PHP Data Objects ) extension defines a lightweight, consistent interface
for accessing databases in PHP. if you are using the PDO API, you could switch the
database server you used, from say PgSQL to MySQL, and only need to make
minor changes to your PHP code.
While PDO has its advantages, such as a clean, simple, portable API but its main
disadvantage is that it doesn't allow you to use all of the advanced features that
are available in the latest versions of MySQL server. For example, PDO does not
allow you to use MySQL's support for Multiple Statements.
Just need to use below code for connect mysql using PDO
try {
   $dbh = new PDO("mysql:host=$hostname;dbname=databasename", $username, $password);
    $sql = "SELECT * FROM employee";
    foreach ($dbh->query($sql) as $row)
   {
       print $row['employee_name'] .' - '. $row['employee_age'] ;
    }
}
catch(PDOException $e)
{
      echo $e->getMessage();
}

php interview questions and answers.

php   2013-10-04 10:58:02

Mention what is the default URL pattern used in CodeIgniter framework?

CodeIgniter framework URL has four main components in default URL pattern. First we have the server name and next we have the controller class name followed by controller function name and function parameters at the end. CodeIgniter can be accessed using the URL helper.

For example:
http://localhost/demo/controllerName/controllerFunction/param1/param2.

CodeIgniter   jayvik 2016-05-30 06:21:36

what is URL rewriting?

Using URL rewriting we can convert dynamic URl to static URL Static URLs are known to be better than Dynamic URLs because of a number of reasons 
1. Static URLs typically Rank better in Search Engines. 
2. Search Engines are known to index the content of dynamic pages a lot slower compared to static pages.
3.Static URLs are always more friendlier looking to the End Users. along with this we can use URL rewriting in adding variables [cookies] to the URL to handle the sessions.

php interview questions and answers.

php   2013-10-04 10:49:09

what is CURL?

CURL means Client URL Library
curl is a command line tool for transferring files with URL syntax, supporting FTP,FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM,
Negotiate, kerberos), file transfer resume, proxy tunneling and a busload of other useful tricks.
CURL allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

php interview questions and answers.

php   2013-10-04 10:56:05

what is design pattern? singleton pattern?

A design pattern is a general reusable solution to a commonly occurring problem in software design.
The Singleton design pattern allows many parts of a program to share a single resource without having to work out the details of the sharing themselves.

php interview questions and answers.

php   2013-07-15 11:51:09

how to track user logged out or not? when user is idle ?

By checking the session variable exist or not while loading th page. As the session will exist longer as till browser closes. The default behaviour for sessions is to keep a session open indefinitely and only to expire a session when the browser is closed. This behaviour can be changed in the php.ini file by altering the line session.cookie_lifetime = 0 to a value in seconds. If you wanted the session to finish in 5 minutes you would set this to session.cookie_lifetime = 300 and restart your httpd server.

php interview questions and answers.

php   2013-07-15 11:48:48

how to track no of user logged in ?

whenever a user logs in track the IP, userID etc..and store it in a DB with a active flag while log out or sesion expire make it inactive. At any time by counting the no: of active records we can get the no: of visitors.

php interview questions and answers.

php   2013-07-15 11:49:25

How can we know the number of days between two given dates usingPHP?

$date1 = date("Y-m-d");
$date2 = "2006-08-15";
$days = (strtotime($date1) - strtotime($date2)) / (60 * 60 * 24);

interview question fresher.

php   2013-07-08 18:04:41

Explain how you can link images/CSS/JavaScript from a view in CodeIgniter?

 In HTML, there is no CodeIgniter way, as such it is a PHP server side framework. Just use an absolute path to your resources to link images/CSS/JavaScript from a view in CodeIgniter

/css/styles.css
/js/myscript.js
/images/hello.jpg

CodeIgniter   jayvik 2016-05-30 06:19:04

How can we encrypt and decrypt a data present in a MySQL table using MySQL?

AES_ENCRYPT () and AES_DECRYPT ()

Best interview question answer php for experiences and fresher

php   2013-06-17 14:12:26

for image work which library?

we will need to compile PHP with the GD library of image functions for this to work. GD and PHP may also require other libraries, depending on which image formats you want to work with.

php interview questions and answers.

php   2013-07-15 11:50:35

What are default session time and path?

default session time in PHP is 1440 seconds or 24 minutes Default session save path id temporary folder /tmp

php interview questions and answers.

php   2013-07-15 11:47:58

Explain what is inhibitor in CodeIgniter?

 For CodeIgniter, inhibitor is an error handler class, using the native PHP functions like set_exception_handler, set_error_handler, register_shutdown_function to handle parse errors, exceptions, and fatal errors.

CodeIgniter   jayvik 2016-05-30 06:20:20

what is MVC? why its been used?

Model-view-controller (MVC) is an architectural pattern used in software engineering. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other. In MVC, the model represents the information (the data) of the application; the view corresponds to elements of the user interface such as text, checkbox items, and so forth; and the controller manages the
communication of data and the business rules used to manipulate the data to and from the model. WHY ITS NEEDED IS 1 Modular separation of function 2 Easier to maintain 3 View-Controller separation means:
A — Tweaking design (HTML) without altering code B — Web design staff can modify UI without understanding code

php interview questions and answers.

php   2013-10-04 10:53:46

How can I load data from a text file into a table?

you can use LOAD DATA INFILE file_name; syntax to load data from a text file. but you have to make sure thata) data is delimited
b) columns and data matched correctly

interview question fresher.

php   2013-07-08 18:03:22

what is framework? how it works? what is advantage?

In general, a framework is a real or conceptual structure intended to serve as a support or guide for the building of something that expands the structure into something useful. Advantages : Consistent Programming Model Direct Support for Security Simplified Development Efforts Easy Application Deployment and Maintenance

php interview questions and answers.

php   2013-10-04 10:54:28

How many ways can we get the value of current session id?

session_id() returns the session id for the current session.

top php interview question

php   2013-07-02 08:02:08




popular php questions and answers for experienced


php best Interview Questions have been designed especially to get you acquainted with the nature of questions you may encounter during your interview for the subject of php Programming Language. here some questions that helpful for your interview. php 2024 job interview questions with answers. php for employee and fresher. Here we present some more challenging practice php interview questions and answers that were asked in a real interview for a php developer position. These questions are really good to not just test your php skills, but also your general development knowledge. php programming learning. we hope this php interview questions and answers would be useful for quick glance before going for any php job interview.