Your Ad Here
0

How To Read the Entire File into a Single String?

Posted by The Blogger on 12:53 PM in
Answer:

If you have a file, and you want to read the entire file into a single string, you can use the file_get_contents() function. It opens the specified file, reads all characters in the file, and returns them in a single string. Here is a PHP script example on how to file_get_contents():

$file = file_get_contents(”/windows/system32/drivers/etc/services”);
print(”Size of the file: “.strlen($file).”\n”);
?>

This script will print:

Size of the file: 7116



tags: php interview questions and answers, php interview question How To Read the Entire File into a Single String, How To Read the Entire File into a Single String

0

How To Turn On the Session Support?

Posted by The Blogger on 12:52 PM in
Answer:

The session support can be turned on automatically at the site level, or manually in each PHP page script:

* Turning on session support automatically at the site level: Set session.auto_start = 1 in php.ini.
* Turning on session support manually in each page script: Call session_start() funtion.


tags: php interview questions and answers, php interview question How To Turn On the Session Support, How To Turn On the Session Support

0

Explain about Type Juggling in php?

Posted by The Blogger on 12:51 PM in
Answer:

PHP does not require (or support) explicit type definition in variable declaration; a variable’s type is determined by the context in which that variable is used. That is to say, if you assign a string value to variable $var, $var becomes a string. If you then assign an integer value to $var, it becomes an integer.

An example of PHP’s automatic type conversion is the addition operator ‘+’. If any of the operands is a float, then all operands are evaluated as floats, and the result will be a float. Otherwise, the operands will be interpreted as integers, and the result will also be an integer. Note that this does NOT change the types of the operands themselves; the only change is in how the operands are evaluated.

$foo += 2; // $foo is now an integer (2)
$foo = $foo + 1.3; // $foo is now a float (3.3)
$foo = 5 + “10 Little Piggies”; // $foo is integer (15)
$foo = 5 + “10 Small Pigs”; // $foo is integer (15)

If the last two examples above seem odd, see String conversion to numbers.
If you wish to change the type of a variable, see settype().
If you would like to test any of the examples in this section, you can use the var_dump() function.
Note: The behavior of an automatic conversion to array is currently undefined.

Since PHP (for historical reasons) supports indexing into strings via offsets using the same syntax as array indexing, the example above leads to a problem: should $a become an array with its first element being “f”, or should “f” become the first character of the string $a? The current versions of PHP interpret the second assignment as a string offset identification, so $a becomes “f”, the result of this automatic conversion however should be considered undefined. PHP 4 introduced the new curly bracket syntax to access characters in string, use this syntax instead of the one presented above.

tags: php interview questions and answers, php interview question Explain about Type Juggling in php, Explain about Type Juggling in php

0

What is the difference between Reply-to and Return-path in the headers of a mail function?

Posted by The Blogger on 12:50 PM in
Answer:

Reply-to: Reply-to is where to delivery the reply of the mail.

Return-path: Return path is when there is a mail delivery failure occurs then where to delivery the failure notification.


tags: php interview questions and answers, php interview question What is the difference between Reply-to and Return-path in the headers of a mail function, What is the difference between Reply-to and Return-path in the headers of a mail function

0

How to store the uploaded file to the final location?

Posted by The Blogger on 12:49 PM in
Answer:

move_uploaded_file ( string filename, string destination)

This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP’s HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by destination.

If filename is not a valid upload file, then no action will occur, and move_uploaded_file() will return FALSE.

If filename is a valid upload file, but cannot be moved for some reason, no action will occur, and move_uploaded_file() will return FALSE. Additionally, a warning will be issued.



tags: php interview questions and answers, php interview question How to store the uploaded file to the final location, How to store the uploaded file to the final location

0

What type of headers have to be added in the mail function to attach a file?

Posted by The Blogger on 12:48 PM in
Answer:

$boundary = ‘–’ . md5( uniqid ( rand() ) );
$headers = “From: \”Me\”\n”;
$headers .= “MIME-Version: 1.0\n”;
$headers .= “Content-Type: multipart/mixed; boundary=\”$boundary\”";

tags: php interview questions and answers, php interview question What type of headers have to be added in the mail function to attach a file, What type of headers have to be added in the mail function to attach a file

0

How many ways I can redirect a PHP page?

Posted by The Blogger on 12:46 PM in
Answer 1:

Using Java script:
echo ‘window.location.href=”‘.$filename.’”;’; echo ”; echo ”; echo ”; echo ”; } } redirect(’http://maosjb.com’); ?>

Answer 2:

Using php function: header(”Location:http://maosjb.com “);


tags: php interview questions and answers, php interview question How many ways I can redirect a PHP page, How many ways I can redirect a PHP page

0

What are the features and advantages of OBJECT ORIENTED PROGRAMMING?

Posted by The Blogger on 12:45 PM in
Answer:

One of the main advantages of OO programming is its ease of modification; objects can easily be modified and added to a system there by reducing maintenance costs. OO programming is also considered to be better at modeling the real world than is procedural programming. It allows for more complicated and flexible interactions. OO systems are also easier for non-technical personnel to understand and easier for them to participate in the maintenance and enhancement of a system because it appeals to natural human cognition patterns. For some systems, an OO approach can speed development time since many objects are standard across systems and can be reused. Components that manage dates, shipping, shopping carts, etc. can be purchased and easily modified for a specific system

tags: php interview questions and answers, php interview question What are the features and advantages of OBJECT ORIENTED PROGRAMMING, What are the features and advantages of OBJECT ORIENTED PROGRAMMING

0

What are the reasons for selecting LAMP (Linux, Apache, MySQL, Php) instead of combination of other software programs, servers and operating systems?

Posted by The Blogger on 12:42 PM in
Answer:

All of those are open source resource. Security of linux is very very more than windows. Apache is a better server that IIS both in functionality and security. Mysql is world most popular open source database. Php is more faster than asp or any other scripting language.

tags: php interview questions and answers, php interview question What are the reasons for selecting LAMP (Linux, Apache, MySQL, Php) instead of combination of other software programs, servers and operating systems, What are the reasons for selecting LAMP (Linux, Apache, MySQL, Php) instead of combination of other software programs, servers and operating systems

0

WHAT TYPES OF IMAGES THAT PHP SUPPORTS?

Posted by The Blogger on 12:42 PM in
Answer:

Using imagetypes() function to find out what types of images are supported in your PHP engine.
imagetypes() – Returns the image types supported.
This function returns a bit-field corresponding to the image formats supported by the version of GD linked into PHP. The following bits are returned, IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | IMG_XPM.

tags: php interview questions and answers, php interview question WHAT TYPES OF IMAGES THAT PHP SUPPORTS, WHAT TYPES OF IMAGES THAT PHP SUPPORTS

0

How to reset/destroy a cookie?

Posted by The Blogger on 12:41 PM in
Answer:

Reset a cookie by specifying expire time in the past:
Example: setcookie(’Test’,$i,time()-3600); // already expired time

Reset a cookie by specifying its name only
Example: setcookie(’Test’);


tags: php interview questions and answers, php interview question How to reset/destroy a cookie, How to reset/destroy a cookie, destroy cookie in php

1

How to set cookies in php?

Posted by The Blogger on 12:40 PM in
Answer:

setcookie(’variable’,'value’,'time’);
variable – name of the cookie variable
value – value of the cookie variable
time – expiry time
Example: setcookie(’Test’,$i,time()+3600);

Test – cookie variable name
$i – value of the variable ‘Test’
time()+3600 – denotes that the cookie will expire after an one hour

tags: php interview questions and answers, php interview question How to set cookies in php, How to set cookies in php

0

How can we get the properties (size, type, width, height) of an image using php image functions?

Posted by The Blogger on 12:39 PM in
Answer:

To know the image size use getimagesize() function
To know the image width use imagesx() function
To know the image height use imagesy() function

tags: php interview questions and answers, php interview question How can we get the properties (size, type, width, height) of an image using php image functions, How can we get the properties (size, type, width, height) of an image using php image functions

0

What are the functions for IMAP?

Posted by The Blogger on 12:38 PM in
Answer:

imap_body – Read the message body
imap_check – Check current mailbox
imap_delete – Mark a message for deletion from current mailbox
imap_mail – Send an email message

tags: php interview questions and answers, php interview question What are the functions for IMAP, What are the functions for IMAP

0

IN HOW MANY WAYS WE CAN RETRIEVE DATA IN THE RESULT SET OF MYSQL USING PHP?

Posted by The Blogger on 12:36 PM in
Answer:

mysql_fetch_array – Fetch a result row as an associative array, a numeric array, or both
mysql_fetch_assoc – Fetch a result row as an associative array
mysql_fetch_object – Fetch a result row as an object
mysql_fetch_row —- Get a result row as an enumerated array

tags: php interview questions and answers, php interview question IN HOW MANY WAYS WE CAN RETRIEVE DATA IN THE RESULT SET OF MYSQL USING PHP, IN HOW MANY WAYS WE CAN RETRIEVE DATA IN THE RESULT SET OF MYSQL USING PHP

0

What is the difference between PHP4 and PHP5?

Posted by The Blogger on 12:35 PM in
Answer:

PHP4 cannot support oops concepts and Zend engine 1 is used.

PHP5 supports oops concepts and Zend engine 2 is used.
Error supporting is increased in PHP5.
XML and SQLLite will is increased in PHP5.

tags: php interview questions and answers, php interview question What is the difference between PHP4 and PHP5, What is the difference between PHP4 and PHP5, difference between php4 and php5

0

What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?

Posted by The Blogger on 12:33 PM in
Answer 1:
mysql_fetch_array() -> Fetch a result row as a combination of associative array and regular array.
mysql_fetch_object() -> Fetch a result row as an object.
mysql_fetch_row() -> Fetch a result set as a regular array().

Answer 2:
The difference between mysql_fetch_row() and mysql_fetch_array() is that the first returns the results in a numeric array ($row[0], $row[1], etc.), while the latter returns a the results an array containing both numeric and associative keys ($row['name'], $row['email'], etc.). mysql_fetch_object() returns an object ($row->name, $row->email, etc.).


tags: php interview questions and answers, php interview question What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row(), What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()

0

How many ways we can pass the variable through the navigation between the pages?

Posted by The Blogger on 12:32 PM in
Answer:

At least 3 ways:

1. Put the variable into session in the first page, and get it back from session in the next page.
2. Put the variable into cookie in the first page, and get it back from the cookie in the next page.
3. Put the variable into a hidden form field, and get it back from the form in the next page


tags: php interview questions and answers, php interview question How many ways we can pass the variable through the navigation between the pages, How many ways we can pass the variable through the navigation between the pages

0

How can we know the count/number of elements of an array?

Posted by The Blogger on 12:30 PM in
Answer 1:
sizeof($array) – This function is an alias of count()

Answer 2:
count($urarray) – This function returns the number of elements in an array.


Interestingly if you just pass a simple var instead of an array, count() will return 1.


tags: php interview questions and answers, php interview question How can we know the count/number of elements of an array, How can we know the count/number of elements of an array, number of elements of an array

0

What are the different functions in sorting an array in php?

Posted by The Blogger on 12:29 PM in
Answer:

Sorting functions in PHP:
asort()
arsort()
ksort()
krsort()
uksort()
sort()
natsort()
rsort()

tags: php interview questions and answers, php interview question What are the different functions in sorting an array in php, sorting in php, array sorting in php, php sorting, array sorting

0

if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

Posted by The Blogger on 12:28 PM in
Answer:

Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.

tags: php interview questions and answers, php interview question if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1(), if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1(), md5, crc32,sha1

0

How can we register the variables into a session?

Posted by The Blogger on 12:26 PM in
Answer:

session_register($session_var);

$_SESSION['var'] = ‘value’;


tags: php interview questions and answers, php interview question How can we register the variables into a session, How can we register the variables into a session, register session variable, sessions in php

0

What is the difference between the functions unlink and unset?

Posted by The Blogger on 12:24 PM in
Answer:

unlink() is a function for file system handling. It will simply delete the file in context.

unset() is a function for variable management. It will make a variable undefined.


tags: php interview questions and answers, php interview question What is the difference between the functions unlink and unset, What is the difference between the functions unlink and unset, unlink, unset

0

How can we extract string ‘abc.com ‘ from a string http://info@abc.com using regular expression of php?

Posted by The Blogger on 12:21 PM in
Answer 1:

We can use the preg_match() function with "/.*@(.*)$/" as
the regular expression pattern. For example:
preg_match("/.*@(.*)$/","http://info@abc.com",$data);
echo $data[1];

Answer 2:

you can use array split
$site_arr=split("@", "http://info@abc.com");
$site_name=$site_arr[1];
$site_name will have the value abc.com.

Answer 3:

Use this coding

$variablename="http://info@abc.com";
$u=explode("@",$variablename);
$u2=$u[1];

tags: php interview questions and answers, php interview question How can we extract string ‘abc.com ‘ from a string http://info@abc.com using regular expression of php, How can we extract string ‘abc.com ‘ from a string http://info@abc.com using regular expression of php

0

WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP?

Posted by The Blogger on 12:19 PM in
Answer:

Here are three basic types of runtime 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. By default, such errors are not displayed to the user at all – although you can change this default behavior.

2. Warnings: These are more serious errors – for example, attempting to include() a file which does not exist. By default, these errors are displayed to the user, but they do not result in script termination.

3. Fatal errors: These are critical errors – for example, instantiating an object of a non-existent class, or calling a non-existent function. These errors cause the immediate termination of the script, and PHP’s default behavior is to display them to the user when they take place.

Internally, these variations are represented by twelve different error types


tags: php interview questions and answers, php interview question WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP, WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP, errors in php, errors, php errors

0

What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods?

Posted by The Blogger on 12:18 PM in
Anwser 1:

When we submit a form, which has the GET method it displays pair of name/value used in the form at the address bar of the browser preceded by url. Post method doesn’t display these values.

Anwser 2:

When you want to send short or small data, not containing ASCII characters, then you can use GET” Method. But for long data sending, say more then 100 character you can use POST method.

Once most important difference is when you are sending the form with GET method. You can see the output which you are sending in the address bar. Whereas if you send the form with POST” method then user can not see that information.

Anwser 3:

What are “GET” and “POST”?

GET and POST are methods used to send data to the server: With the GET method, the browser appends the data onto the URL. With the Post method, the data is sent as “standard input.”

Major Difference

In simple words, in POST method data is sent by standard input (nothing shown in URL when posting while in GET method data is sent through query string.

Ex: Assume we are logging in with username and password.

GET: we are submitting a form to login.php, when we do submit or similar action, values are sent through visible query string (notice ./login.php?username=…&password=… as URL when executing the script login.php) and is retrieved by login.php by $_GET['username'] and $_GET['password'].

POST: we are submitting a form to login.php, when we do submit or similar action, values are sent through invisible standard input (notice ./login.php) and is retrieved by login.php by $_POST['username'] and $_POST['password'].

POST is assumed more secure and we can send lot more data than that of GET method is limited (they say Internet Explorer can take care of maximum 2083 character as a query string).

Anwser 4:

In the get method the data made available to the action page ( where data is received ) by the URL so data can be seen in the address bar. Not advisable if you are sending login info like password etc. In the post method the data will be available as data blocks and not as query string in case of get method.

Anwser 5:

When we submit a form, which has the GET method it pass value in the form of query string (set of name/value pair) and display along with URL. With GET we can a small data submit from the form (a set of 255 character) whereas Post method doesn’t display value with URL. It passes value in the form of Object and we can submit large data from the form.

Anwser 6:

On the server side, the main difference between GET and POST is where the submitted is stored. The $_GET array stores data submitted by the GET method. The $_POST array stores data submitted by the POST method.
On the browser side, the difference is that data submitted by the GET method will be displayed in the browser’s address field. Data submitted by the POST method will not be displayed anywhere on the browser.
GET method is mostly used for submitting a small amount and less sensitive data. POST method is mostly used for submitting a large amount or sensitive data.



tags: php interview questions and answers, php interview question What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods, What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods, post and get in php, post,get,php

0

How To Protect Special Characters in Query String?

Posted by The Blogger on 12:12 PM in
Answer:

If you want to include special characters like spaces in the query string, you need to protect them by applying the urlencode() translation function. The script below shows how to use urlencode():

<?php
print(”<html>”);
print(”<p>Please click the links below”
.” to submit comments about FYICenter.com:</p>”);
$comment = ‘I want to say: “It\’s a good site! :->”‘;
$comment = urlencode($comment);
print(”<p>”
.”<a href=\”processing_forms.php?name=Guest&comment=$comment\”>”
.”It’s an excellent site!</a></p>”);
$comment = ‘This visitor said: “It\’s an average site! :-( ”‘;
$comment = urlencode($comment);
print(”<p>”
.’<a href=”processing_forms.php?’.$comment.’”>’
.”It’s an average site.</a></p>”);
print(”</html>”);
?>


tags: php interview questions and answers, php interview question How To Protect Special Characters in Query String, How To Protect Special Characters in Query String,special characters in php, special characters

0

What is the difference between ereg_replace() and eregi_replace()?

Posted by The Blogger on 12:11 PM in
Answer:
eregi_replace() function is identical to ereg_replace() except that it ignores case distinction when matching alphabetic characters.

tags: php interview questions and answers, php interview question What is the difference between ereg_replace() and eregi_replace(), What is the difference between ereg_replace() and eregi_replace(), ereg_replace(),eregi_replace()

0

What is the functionality of the function strstr and stristr?

Posted by The Blogger on 12:10 PM in
Answer:
strstr() returns part of a given string from the first occurrence of a given substring to the end of the string. For example: strstr(”user@example.com”,”@”) will return “@example.com”.
stristr() is idential to strstr() except that it is case insensitive.

tags: php interview questions and answers, php interview question What is the functionality of the function strstr and stristr, What is the functionality of the function strstr and stristr, strstr,stristr

0

WHAT IS THE FUNCTIONALITY OF THE FUNCTIONS STRSTR() AND STRISTR()?

Posted by The Blogger on 12:09 PM in
answer:

string strstr ( string haystack, string needle ) returns part of haystack string from the first occurrence of needle to the end of haystack. This function is case-sensitive.

stristr() is idential to strstr() except that it is case insensitive.


tags: php interview questions and answers, php interview question WHAT IS THE FUNCTIONALITY OF THE FUNCTIONS STRSTR() AND STRISTR(), WHAT IS THE FUNCTIONALITY OF THE FUNCTIONS STRSTR() AND STRISTR()

0

How can we encrypt the username and password using PHP?

Posted by The Blogger on 12:07 PM in
Answer1:
You can encrypt a password with the following Mysql>SET PASSWORD=PASSWORD(”Password”);

Answer2
You can use the MySQL PASSWORD() function to encrypt username and password. For example,
INSERT into user (password, …) VALUES (PASSWORD($password”)), …);

tags: php interview questions and answers, php interview question How can we encrypt the username and password using PHP, How can we encrypt the username and password using PHP, encrypt username and password using php, username, password, php, encrypt

0

How can I execute a PHP script using command line?

Posted by The Blogger on 12:05 PM in
Answer:

Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, “php myScript.php”, assuming “php” is the command to invoke the CLI program.
Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment.

tags: php interview questions and answers, php interview question How can I execute a PHP script using command line, How can I execute a PHP script using command line, command line, php script in command line

0

How To Get the Uploaded File Information in the Receiving Script?

Posted by The Blogger on 12:03 PM in
Answer:

Once the Web server received the uploaded file, it will call the PHP script specified in the form action attribute to process them. This receiving PHP script can get the uploaded file information through the predefined array called $_FILES. Uploaded file information is organized in $_FILES as a two-dimensional array as:

* $_FILES[$fieldName]['name'] – The Original file name on the browser system.
* $_FILES[$fieldName]['type'] – The file type determined by the browser.
* $_FILES[$fieldName]['size'] – The Number of bytes of the file content.
* $_FILES[$fieldName]['tmp_name'] – The temporary filename of the file in which the uploaded file was stored on the server.
* $_FILES[$fieldName]['error'] – The error code associated with this file upload.

The $fieldName is the name used in the


tags: php interview questions and answers, php interview question How To Get the Uploaded File Information in the Receiving Script, How To Get the Uploaded File Information in the Receiving Script, upload file, uploaded file in php

0

What is meant by urlencode and urldecode?

Posted by The Blogger on 12:02 PM in
Anwser 1:
urlencode() returns the URL encoded version of the given string. URL coding converts special characters into % signs followed by two hex digits. For example: urlencode(”10.00%”) will return “10%2E00%25″. URL encoded strings are safe to be used as part of URLs.
urldecode() returns the URL decoded version of the given string.

Anwser 2:
string urlencode(str) – Returns the URL encoded version of the input string. String values to be used in URL query string need to be URL encoded. In the URL encoded version:

Alphanumeric characters are maintained as is.
Space characters are converted to “+” characters.
Other non-alphanumeric characters are converted “%” followed by two hex digits representing the converted character.

string urldecode(str) – Returns the original string of the input URL encoded string.

For example:

$discount =”10.00%”;
$url = “http://domain.com/submit.php?disc=”.urlencode($discount);
echo $url;

You will get “http://domain.com/submit.php?disc=10%2E00%25″.


tags: php interview questions and answers, php interview question What is meant by urlencode and urldecode, What is meant by urlencode and urldecode, urlencode, urldecode,url encode, url decode

0

What does a special set of tags do in PHP?

Posted by The Blogger on 12:01 PM in
Answer:

The output is displayed directly to the browser.


tags: php interview questions and answers, php interview question What does a special set of tags do in PHP, What does a special set of tags do in php

0

What Is a Persistent Cookie?

Posted by The Blogger on 11:58 AM in
Answer:

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 closed, temporary cookies will be erased. You should decide when to use temporary cookies and when to use persistent cookies based on their differences:

* Temporary cookies can not be used for tracking long-term information.
* Persistent cookies can be used for tracking long-term information.
* Temporary cookies are safer because no programs other than the browser can access them.
* Persistent cookies are less secure because users can open cookie files see the cookie values.


tags: php interview questions and answers, php interview question What Is a Persistent Cookie,What Is a Persistent Cookie, persistent cookie, cookie

0

What is the difference between $message and $$message?

Posted by The Blogger on 11:57 AM in
Anwser 1:

$message is a simple variable whereas $$message is a reference variable. Example:
$user = ‘bob’

is equivalent to

$holder = ‘user’;
$$holder = ‘bob’;

Anwser 2:

They are both variables. But $message is a variable with a fixed name. $$message is a variable who’s name is stored in $message. For example, if $message contains “var”, $$message is the same as $var.


tags: php interview questions and answers, php interview question What is the difference between $message and $$message, What is the difference between $message and $$message

0

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

Posted by The Blogger on 11:55 AM in
Answer:
$date1 = date(’Y-m-d’);
$date2 = ‘2006-07-01′;
$days = (strtotime() – strtotime()) / (60 * 60 * 24);
echo “Number of days since ‘2006-07-01′: $days”;

tags: php interview questions and answers, php interview question How can we know the number of days between two given dates using php, How can we know the number of days between two given dates using php

0

What is meant by PEAR in php?

Posted by The Blogger on 11:53 AM in

Answer1:


PEAR is the next revolution in PHP. This repository is bringing higher level programming to PHP. PEAR is a framework and distribution system for reusable PHP components. It eases installation by bringing an automated wizard, and packing the strength and experience of PHP users into a nicely organised OOP library. PEAR also provides a command-line interface that can be used to automatically install “packages”

Answer2:


PEAR is short for “PHP Extension and Application Repository” and is pronounced just like the fruit. The purpose of PEAR is to provide:
A structured library of open-sourced code for PHP users
A system for code distribution and package maintenance
A standard style for code written in PHP
The PHP Foundation Classes (PFC),
The PHP Extension Community Library (PECL),
A web site, mailing lists and download mirrors to support the PHP/PEAR community
PEAR is a community-driven project with the PEAR Group as the governing body. The project has been founded by Stig S. Bakken in 1999 and quite a lot of people have joined the project since then.


tags: php interview questions and answers, php interview question what is meant by pear in php, what is meant by pear in php, pear, pear in php


0

What Is a Session in php?

Posted by The Blogger on 11:50 AM in

php Answer:

A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests.

There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or another script when requested from the same visitor.

Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.


tags: php interview questions and answers, php interview question what is a session, session, php session

0

What is PHP?

Posted by The Blogger on 11:46 AM in
Answer:

The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications.

tags: php interview questions and answers, php interview question what is php, what is php, php

0

What is differenc between mysql_connect and mysql_pconnect?

Posted by The Blogger on 11:44 AM in
Answer:
mysql_pconnect establishes a persistent connection. If you don't need one (such as a website that is mostly HTML files or PHP files that don't call the db) then you don't need to use it. mysql_connect establishes a connection for the duration of the script that access the db. Once the script has finished executing it closes the connection. The only time you need to close the connection manually is if you jump out of the script for any reason.

If you do use mysql_pconnect. You only need to call it once for the session. That's the beauty of it. It will hold open a connection to the db that you can use over and over again simply by calling the resource ID whenever you need to interact with the db.

tags: php interview questions, php interview question What is differenc between mysql_connect and mysql_pconnect, What is differenc between mysql_connect and mysql_pconnect?

0

how can we get ip address using php?

Posted by The Blogger on 11:42 AM in
Answer:
We can use SERVER var $_SERVER['SERVER_ADDR'] and getenv("REMOTE_ADDR") functions to get the IP address.

tags: php interview questions, php interview question how can we get ip address, how can we get ip address

0

What is difference between require_once(), require(), include()?

Posted by The Blogger on 11:37 AM in
Answer:

Difference between require() and require_once(): require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on the same page). So, require_once() is recommended to use when you want to include a file where you have a lot of functions for example. This way you make sure you don't include the file more times and you will not get the "function re-declared" error. Difference between require() and include() is that require() produces a FATAL ERROR if the file you want to include is not found, while include() only produces a WARNING. There is also include_once() which is the same as include(), but the difference between them is the same as the difference between require() and require_once().

tags: php interview questions, php interview question What is difference between require_once(), require(), include(), What is difference between require_once(), require(), include()

0

What is CAPTCHA?

Posted by The Blogger on 11:33 AM in
Answer:

CAPTCHA stands for Completely Automated Public Turing Test to tell Computers and Humans Apart. To prevent spammers from using bots to automatically fill out forms, CAPTCHA programmers will generate an image containing distorted images of a string of numbers and letters. Computers cannot determine what the numbers and letters are from the image but humans have great pattern recognition abilities and will be able to fairly accurately determine the string of numbers and letters. By entering the numbers and letters from the image in the validation field, the application can be fairly assured that there is a human client using it.

tags: php interview questions, php interview question what is captcha, captcha, what is captcha

0

For printing out strings, there are echo, print and printf. Explain the differences

Posted by The Blogger on 12:36 AM in

or what is the difference between echo, print and printf



Answer:
echo is the most primitive of them, and just outputs the contents following the construct to the screen.
print
is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like:
 

and it will output the string "Welcome to TechInterviews!" print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP.

printf is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.



tags: php interview questions, php interview question what is the difference between echo, print and printf, what is the difference between echo, print and printf, php interview question For printing out strings, there are echo, print and printf. Explain the differences, For printing out strings, there are echo, print and printf. Explain the differences


0

Would you initialize your strings with single quotes or double quotes?

Posted by The Blogger on 12:34 AM in

or what is the difference between single and double quotes?



Answer:
Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.


tags: php interview questions, php interview question Would you initialize your strings with single quotes or double quotes,Would you initialize your strings with single quotes or double quotes, what is the difference between single and double quotes

0

What’s the special meaning of __sleep and __wakeup?

Posted by The Blogger on 12:31 AM in
Answer:

__sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.

tags: php interview questions, php interview question What’s the special meaning of __sleep and __wakeup, What’s the special meaning of __sleep and __wakeup

0

how do you define a constant?

Posted by The Blogger on 12:29 AM in
Answer:

We define using define( ) directive.
for e.g., define ("MYCONSTANT", 100);



tags: php interview questions, php interview question how do you define a constant, how do you define a constant

0

What’s the difference between include and require?

Posted by The Blogger on 12:13 AM in
Answer:
It’s how PHP handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.



tags: php interview questions, php interview question What’s the difference between include and require, What’s the difference between include and require

0

what are the different types of instructions in c?

Posted by The Blogger on 12:08 AM in ,
Answer:

There are basically 4 types of instructions in C :

1. Type declaration instructions: to declare the type of variables used in a C program

2. Input/Output instructions: to perform the function of supplying input data to a program and obtaining the output results from it.

3. Arithmetic instructions: to perform arithmetic operations between constants and variables.

4. Control instructions: to control the sequence of execution of various statements in a C program.



tags: interview questions, interview question what are the different types of instructions in c, what are the different types of instructions in c

0

what is a variable?

Posted by The Blogger on 12:05 AM in ,
Answer:

A variable can be considered as a name given to the memory location where the constant is stored.

syntax: <datatype> <variablename>;


tags: interview questions, interview question what is a variable, what is a variable

0

what is a constant?

Posted by The Blogger on 11:59 PM in
Answer:

A constant is a quantity that doesn't change. This quantity can be stored at a location in the memory of the computer.

syntax: const = ;

tags: interview questions, interview question what is a constant, what is a constant

0

why do we need programming language or computer language?

Posted by The Blogger on 11:50 PM in , , ,
Answer:

We need a Programming or Computer language to communicate with a computer, so that the computer understands that language.

An programming language used to write instructions that can be translated into machine language and then executed by a computer.



tags: interview questions, interview questions why do we need programming language or computer language, why do we need programming language or computer language

0

On a scale of one to ten, rate me as an interviewer?

Posted by The Blogger on 12:37 PM in
Give a perfect “10,” and you’ll seem too easy to please. Give anything less than a perfect 10, and he could press you as to where you’re being critical, and that road leads downhill for you.

Answer:
Once again, never be negative. The interviewer will only resent criticism coming from you. This is the time to show your positivism.

However, don’t give a numerical rating. Simply praise whatever interview style he’s been using.

If he’s been tough, say “You have been thorough and tough-minded, the very qualities needed to conduct a good interview.”

If he’s been methodical, say, “You have been very methodical and analytical, and I’m sure that approach results in excellent hires for your firm.”

In other words, pay him a sincere compliment that he can believe because it’s anchored in the behavior you’ve just seen.



tags: interview, interview question, On a scale of one to ten, rate me as an interviewer, how to answer, how to answer On a scale of one to ten, rate me as an interviewer

0

If you won $10 million lottery, would you still work?

Posted by The Blogger on 12:35 PM in
Your totally honest response might be, “Hell, no, are you serious?” That might be so, but any answer which shows you as fleeing work if given the chance could make you seem lazy. On the other hand, if you answer, “Oh, I’d want to keep doing exactly what I am doing, only doing it for your firm,” you could easily inspire your interviewer to silently mutter to himself, “Yeah, sure. Gimme a break.”

Answer:
This type of question is aimed at getting at your bedrock attitude about work and how you feel about what you do. Your best answer will focus on your positive feelings.

Example: “After I floated down from cloud nine, I think I would still hold my basic belief that achievement and purposeful work are essential to a happy, productive life. After all, if money alone bought happiness, then all rich people would be all happy, and that’s not true.

“I love the work I do, and I think I’d always want to be involved in my career in some fashion. Winning the lottery would make it more fun because it would mean having more flexibility, more options...who knows?”
“Of course, since I can’t count on winning, I’d just as soon create my own destiny by sticking with what’s worked for me, meaning good old reliable hard work and a desire to achieve. I think those qualities have built many more fortunes that all the lotteries put together.”



tags: interview, interview question, If you won $10 million lottery, would you still work, how to answer, how to answerIf you won $10 million lottery, would you still work?

0

How much salary do you want?

Posted by The Blogger on 12:33 PM in
Answer:

For maximum salary negotiating power, remember these five guidelines:

1. Never bring up salary. Let the interviewer do it first. Good salespeople sell their products thoroughly before talking price. So should you. Make the interviewer want you first, and your bargaining position will be much stronger.
2. If your interviewer raises the salary question too early, before you’ve had a chance to create desire for your qualifications, postpone the question, saying something like, “Money is important to me, but is not my main concern. Opportunity and growth are far more important. What I’d rather do, if you don’t mind, is explore if I’m right for the position, and then talk about money. Would that be okay?”
3. The #1 rule of any negotiation is: the side with more information wins. After you’ve done a thorough job of selling the interviewer and it’s time to talk salary, the secret is to get the employer talking about what he’s willing to pay before you reveal what you’re willing to accept. So, when asked about salary, respond by asking, “I’m sure the company has already established a salary range for this position. Could you tell me what that is?” Or, “I want an income commensurate with my ability and qualifications. I trust you’ll be fair with me. What does the position pay?” Or, more simply, “What does this position pay?”
4. Know beforehand what you’d accept. To know what’s reasonable, research the job market and this position for any relevant salary information. Remember that most executives look for a 20-25%$ pay boost when they switch jobs. If you’re grossly underpaid, you may want more.
5. Never lie about what you currently make, but feel free to include the estimated cost of all your fringes, which could well tack on 25-50% more to your present “cash-only” salary.



tags: interview, interview question, How much salary do you want, how to answer, how to answer How much salary do you want

0

What are your goals?

Posted by The Blogger on 12:31 PM in
Not having any…or having only vague generalities, not highly specific goals.

Many executives in a position to hire you are strong believers in goal-setting. (It’s one of the reason they’ve achieved so much). They like to hire in kind.

If you’re vague about your career and personal goals, it could be a big turnoff to may people you will encounter in your job search.

Be ready to discuss your goals for each major area of your life: career, personal development and learning, family, physical (health), community service and (if your interviewer is clearly a religious person) you could briefly and generally allude to your spiritual goals (showing you are a well-rounded individual with your values in the right order).

Be prepared to describe each goal in terms of specific milestones you wish to accomplish along the way, time periods you’re allotting for accomplishment, why the goal is important to you, and the specific steps you’re taking to bring it about. But do this concisely, as you never want to talk more than two minutes straight before letting your interviewer back into the conversation.


tags: interview, interview question, What are your goals, how to answer, how to answer What are your goals

0

Where could you use some improvement?

Posted by The Blogger on 12:29 PM in
Another tricky way to get you to admit weaknesses. Don’t fall for it.

Answer:

Keep this answer, like all your answers, positive. A good way to answer this question is to identify a cutting-edge branch of your profession (one that’s not essential to your employer’s needs) as an area you’re very excited about and want to explore more fully over the next six months.


tags: interview, interview question, Where could you use some improvement how to answer, how to answer Where could you use some improvement

0

How do you feel about working nights and weekends?

Posted by The Blogger on 12:27 PM in
Blurt out “no way, Jose” and you can kiss the job offer goodbye. But what if you have a family and want to work a reasonably normal schedule? Is there a way to get both the job and the schedule you want?

Answer:
First, if you’re a confirmed workaholic, this question is a softball lob. Whack it out of the park on the first swing by saying this kind of schedule is just your style. Add that your family understands it. Indeed, they’re happy for you, as they know you get your greatest satisfaction from your work.

If however, you prefer a more balanced lifestyle, answer this question with another: “What’s the norm for your best people here?”

If the hours still sound unrealistic for you, ask, “Do you have any top people who perform exceptionally for you, but who also have families and like to get home in time to see them at night?” Chances are this company does, and this associates you with this other “top-performers-who-leave-not-later-than-six” group.

Depending on the answer, be honest about how you would fit into the picture. If all those extra hours make you uncomfortable, say so, but phrase your response positively.

Example: “I love my work and do it exceptionally well. I think the results speak for themselves, especially in …(mention your two or three qualifications of greater interest to the employer. Remember, this is what he wants most, not a workaholic with weak credentials). Not only would I bring these qualities, but I’ve built my whole career on working not just hard, but smart. I think you’ll find me one of the most productive people here.

I do have a family who likes to see me after work and on weekends. They add balance and richness to my life, which in turn helps me be happy and productive at work. If I could handle some of the extra work at home in the evenings or on weekends, that would be ideal. You’d be getting a person of exceptional productivity who meets your needs with strong credentials. And I’d be able to handle some of the heavy workload at home where I can be under the same roof as my family. Everybody would win.”

0

Who has inspired you in your life and why?

Posted by The Blogger on 12:23 PM in
The two traps here are unpreparedness and irrelevance. If you grope for an answer, it seems you’ve never been inspired. If you ramble about your high school basketball coach, you’ve wasted an opportunity to present qualities of great value to the company.

Answer:
Have a few heroes in mind, from your mental “Board of Directors” – Leaders in your industry, from history or anyone else who has been your mentor.

Be prepared to give examples of how their words, actions or teachings have helped inspire your achievements. As always, prepare an answer which highlights qualities that would be highly valuable in the position you are seeking.


tags: interview, interview question, Who has inspired you in your life and why, how to answer, how to answer Who has inspired you in your life and why

0

What are your career options right now?

Posted by The Blogger on 12:21 PM in
The interviewer is trying to find out, “How desperate are you?”

Answer:
Prepare for this question by thinking of how you can position yourself as a desired commodity. If you are still working, describe the possibilities at your present firm and why, though you’re greatly appreciated there, you’re looking for something more (challenge, money, responsibility, etc.). Also mention that you’re seriously exploring opportunities with one or two other firms.

If you’re not working, you can talk about other employment possibilities you’re actually exploring. But do this with a light touch, speaking only in general terms. You don’t want to seem manipulative or coy.

0

why do you want to work at our company?

Posted by The Blogger on 12:19 PM in
This question tests whether you’ve done any homework about the firm. If you haven’t, you lose. If you have, you win big.

This question is your opportunity to hit the ball out of the park, thanks to the in-depth research you should do before any interview.
Best sources for researching your target company: annual reports, the corporate newsletter, contacts you know at the company or its suppliers, advertisements, articles about the company in the trade press.



tags: interview, interview question, why do you want to work at our company, how to answer, how to answerwhy do you want to work at our company

0

Where do you see yourself five years from now?

Posted by The Blogger on 12:16 PM in
Answer:

Reassure your interviewer that you’re looking to make a long-term commitment... that this position entails exactly what you’re looking to do and what you do extremely well. As for your future, you believe that if you perform each job at hand with excellence, future opportunities will take care of themselves.

Example: “I am definitely interested in making a long-term commitment to my next position. Judging by what you’ve told me about this position, it’s exactly what I’m looking for and what I am very well qualified to do. In terms of my future career path, I’m confident that if I do my work with excellence, opportunities will inevitable open up for me. It’s always been that way in my career, and I’m confident I’ll have similar opportunities here.”


tags: interview, interview question, Where do you see yourself five years from now , how to answer, how to answer tWhere do you see yourself five years from now

0

why should I hire you?

Posted by The Blogger on 12:14 PM in
Answer:
By now you can see how critical it is to apply the overall strategy of uncovering the employer’s needs before you answer questions. If you know the employer’s greatest needs and desires, this question will give you a big leg up over other candidates because you will give him better reasons for hiring you than anyone else is likely to…reasons tied directly to his needs.

Whether your interviewer asks you this question explicitly or not, this is the most important question of your interview because he must answer this question favorably in is own mind before you will be hired. So help him out! Walk through each of the position’s requirements as you understand them, and follow each with a reason why you meet that requirement so well.

Example: “As I understand your needs, you are first and foremost looking for someone who can manage the sales and marketing of your book publishing division. As you’ve said you need someone with a strong background in trade book sales. This is where I’ve spent almost all of my career, so I’ve chalked up 18 years of experience exactly in this area. I believe that I know the right contacts, methods, principles, and successful management techniques as well as any person can in our industry.”

“You also need someone who can expand your book distribution channels. In my prior post, my innovative promotional ideas doubled, then tripled, the number of outlets selling our books. I’m confident I can do the same for you.”

“You need someone to give a new shot in the arm to your mail order sales, someone who knows how to sell in space and direct mail media. Here, too, I believe I have exactly the experience you need. In the last five years, I’ve increased our mail order book sales from $600,000 to $2,800,000, and now we’re the country’s second leading marketer of scientific and medical books by mail.” Etc., etc., etc.,

Every one of these selling “couplets” (his need matched by your qualifications) is a touchdown that runs up your score. IT is your best opportunity to outsell your competition.



tags: interview, interview question,why should I hire you, how to answer, how to answerwhy should I hire you

0

why are you leaving (or did you leave) this position or job?

Posted by The Blogger on 12:06 PM in
Never badmouth your previous industry, company, board, boss, staff, employees or customers. This rule is inviolable: never be negative. Any mud you hurl will only soil your suit.

Especially avoid words like “personality clash”, “didn’t get along”, or others which cast a shadow on your competence, integrity, or temperament.

Answer:
(If you have a job presently)
If you’re not yet 100% committed to leaving your present post, don’t be afraid to say so. Since you have a job, you are in a stronger position than someone who does not. But don’t be coy either. State honestly what you’d be hoping to find in a new spot. Of course, as stated often before, you answer will all the stronger if you have already uncovered what this position is all about and you match your desires to it.

(If you do not presently have a job.)
Never lie about having been fired. It’s unethical – and too easily checked. But do try to deflect the reason from you personally. If your firing was the result of a takeover, merger, division wide layoff, etc., so much the better.
But you should also do something totally unnatural that will demonstrate consummate professionalism. Even if it hurts , describe your own firing – candidly, succinctly and without a trace of bitterness – from the company’s point-of-view, indicating that you could understand why it happened and you might have made the same decision yourself.

Your stature will rise immensely and, most important of all, you will show you are healed from the wounds inflicted by the firing. You will enhance your image as first-class management material and stand head and shoulders above the legions of firing victims who, at the slightest provocation, zip open their shirts to expose their battle scars and decry the unfairness of it all.

For all prior positions:
Make sure you’ve prepared a brief reason for leaving. Best reasons: more money, opportunity, responsibility or growth.



tags: interview, interview question,
why are you leaving (or did you leave) this position or job , how to answer, how to answer
why are you leaving (or did you leave) this position or job

0

tell me about something you did or failed to do that you now feel a little ashamed of

Posted by The Blogger on 12:01 PM in
There are some questions your interviewer has no business asking, and this is one. But while you may feel like answering, “none of your business,” naturally you can’t. Some interviewers ask this question on the chance you admit to something, but if not, at least they’ll see how you think on your feet.

Some unprepared candidates, flustered by this question, unburden themselves of guilt from their personal life or career, perhaps expressing regrets regarding a parent, spouse, child, etc. All such answers can be disastrous.


Answer:
As with faults and weaknesses, never confess a regret. But don’t seem as if you’re stonewalling either.

Best strategy: Say you harbor no regrets, then add a principle or habit you practice regularly for healthy human relations.

Example: Pause for reflection, as if the question never occurred to you. Then say, “You know, I really can’t think of anything.” (Pause again, then add): “I would add that as a general management principle, I’ve found that the best way to avoid regrets is to avoid causing them in the first place. I practice one habit that helps me a great deal in this regard. At the end of each day, I mentally review the day’s events and conversations to take a second look at the people and developments I’m involved with and do a doublecheck of what they’re likely to be feeling. Sometimes I’ll see things that do need more follow-up, whether a pat on the back, or maybe a five minute chat in someone’s office to make sure we’re clear on things…whatever.”

“I also like to make each person feel like a member of an elite team, like the Boston Celtics or LA Lakers in their prime. I’ve found that if you let each team member know you expect excellence in their performance…if you work hard to set an example yourself…and if you let people know you appreciate and respect their feelings, you wind up with a highly motivated group, a team that’s having fun at work because they’re striving for excellence rather than brooding over slights or regrets.”

tags:
interview, interview question, tell me about something you did or failed to do that you now feel a little ashamed of, how to answer, how to answer tell me about something you did or failed to do that you now feel a little ashamed of

0

what are your greatest weaknesses?

Posted by The Blogger on 11:57 AM in
Beware - this is an eliminator question, designed to shorten the candidate list. Any admission of a weakness or fault will earn you an “A” for honesty, but an “F” for the interview.

Good Answer:
Disguise a strength as a weakness.

Example: “I sometimes push my people too hard. I like to work with a sense of urgency and everyone is not always on the same wavelength.”

Drawback: This strategy is better than admitting a flaw, but it's so widely used, it is transparent to any experienced interviewer.

Great ANSWER: (and another reason it's so important to get a thorough description of your interviewer's needs before you answer questions): Assure the interviewer that you can think of nothing that would stand in the way of your performing in this position with excellence. Then, quickly review you strongest qualifications.

Example: “Nobody's perfect, but based on what you've told me about this position, I believe I' d make an outstanding match. I know that when I hire people, I look for two things most of all. Do they have the qualifications to do the job well, and the motivation to do it well? Everything in my background shows I have both the qualifications and a strong desire to achieve excellence in whatever I take on. So I can say in all honesty that I see nothing that would cause you even a small concern about my ability or my strong desire to perform this job with excellence.”

Alternate strategy (if you don't yet know enough about the position to talk about such a perfect fit):
Instead of confessing a weakness, describe what you like most and like least, making sure that what you like most matches up with the most important qualification for success in the position, and what you like least is not essential.

Example: Let's say you're applying for a teaching position. “If given a choice, I like to spend as much time as possible in front of my prospects selling, as opposed to shuffling paperwork back at the office. Of course, I long ago learned the importance of filing paperwork properly, and I do it conscientiously. But what I really love to do is sell (if your interviewer were a sales manager, this should be music to his ears.)



tags: interview questions, interview question what are your greatest weaknesses, what are your weaknesses, question and answer for what is your greatest weakness

0

what are your greatest strengths?

Posted by The Blogger on 11:48 AM in
This question seems like a softball lob, but be prepared. You don't want to come across as egotistical or arrogant. Neither is this a time to be humble.

Answer:

You know that your key strategy is to first uncover your interviewer's greatest wants and needs before you answer questions. And from Question "tell me about yourself", you know how to do this.

Prior to any interview, you should have a list mentally prepared of your greatest strengths. You should also have, a specific example or two, which illustrates each strength, an example chosen from your most recent and most impressive achievements.

You should, have this list of your greatest strengths and corresponding examples from your achievements so well committed to memory that you can recite them cold after being shaken awake at 2:30AM.

Then, once you uncover your interviewer's greatest wants and needs, you can choose those achievements from your list that best match up.

As a general guideline, the 10 most desirable traits that all employers love to see in their employees are:

1. A proven track record as an achiever...especially if your achievements match up with the employer's greatest wants and needs.
2. Intelligence...management "savvy".
3. Honesty...integrity...a decent human being.
4. Good fit with corporate culture...someone to feel comfortable with...a team player who meshes well with interviewer's team.
5. Like ability...positive attitude...sense of humor.
6. Good communication skills.
7. Dedication...willingness to walk the extra mile to achieve excellence.
8. Definiteness of purpose...clear goals.
9. Enthusiasm...high level of motivation.
10. Confident...healthy...a leader



tags: interview questions, interview question what are your greatest strenghts, what are your strength, question and answer for what are your greatest strength

0

tell me about yourself?

Posted by The Blogger on 11:23 AM in
Almost all the interviews begin with this question! If you are unprepared for this question, you will not make a good impression in the interview!

Here I will tell you how to answer it!

Start with the present and tell why you are well qualified for the position. Remember that the key to all successful interviewing is to match your qualifications to what the interviewer is looking for. In other words you must sell what the buyer is buying. This is the single most important strategy in job hunting.

So, before you answer this or any question it's imperative that you try to uncover your interviewer's greatest need, want, problem or goal.

To do so, make you take these two steps:

1. Do all the homework you can before the interview to uncover this person's wants and needs (not the generalized needs of the industry or company)
2. As early as you can in the interview, ask for a more complete description of what the position entails. You might say: “I have a number of accomplishments I'd like to tell you about, but I want to make the best use of our time together and talk directly to your needs. To help me do, that, could you tell me more about the most important priorities of this position? All I know is what I (heard from the recruiter, read in the classified ad, etc.)”

Then, ALWAYS follow-up with a second and possibly, third question, to draw out his needs even more. Surprisingly, it's usually this second or third question that unearths what the interviewer is most looking for.

You might ask simply, "And in addition to that?..." or, "Is there anything else you see as essential to success in this position?

This process will not feel easy or natural at first, because it is easier simply to answer questions, but only if you uncover the employer's wants and needs will your answers make the most sense. Practice asking these key questions before giving your answers, the process will feel more natural and you will be light years ahead of the other job candidates you're competing with.

After uncovering what the employer is looking for, describe why the needs of this job bear striking parallels to tasks you've succeeded at before. Be sure to illustrate with specific examples of your responsibilities and especially your achievements, all of which are geared to present yourself as a perfect match for the needs he has just described.



tags: interview, interview question, tell me about yourself, how to answer, how to answer tell me about yourself, tell me about urself

Your Ad Here

Copyright © 2009 Interview Questions and Answers