Interviewer And Interviewee Guide

Top Internee PHP Developer Interview Questions & Answers:

1. Tell us how is it possible to parse a configuration file?

The function parse_ini_file() enables us to load in the ini file specified in filename, and returns the settings in it in an associative array.

2. Tell us is it possible to submit a form with a dedicated button?

It is possible to use the document.form.submit() function to submit the form.
For example: <input type=button value=”SUBMIT” onClick=”document.form.submit()”>

3. Tell me what are the three classes of errors that can occur in PHP?

The three basic classes of errors are notices (non-critical), warnings (serious errors) and fatal errors (critical errors).

4. Explain me 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.

5. Tell me the difference between the functions unlink and unset?

unlink() deletes the given file from the file system.
unset() makes a variable undefined.

6. Tell me is it possible to use COM component in PHP?

Yes, it's possible to integrate (Distributed) Component Object Model components ((D)COM) in PHP scripts which is provided as a framework.

7. Tell me what are the two main string operators?

The first is the concatenation operator (‘.'), which returns the concatenation of its right and left arguments. The second is (‘.='), which appends the argument on the right to the argument on the left.

8. Tell us what are the differences between Get and post methods?

There are some defference between GET and POST method
1. GET Method have some limit like only 2Kb data able to send for request
But in POST method unlimited data can we send
2. when we use GET method requested data show in url but
Not in POST method so POST method is good for send sensetive request

9. How to pass the variable through the navigation between the pages?

It is possible to pass the variables between the PHP pages using sessions, cookies or hidden form fields.

10. What is mysql_error()?

The mysql_error() message will tell us what was wrong with our query, similar to the message we would receive at the MySQL console.

Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.