PHP Interview Question & Answer


IT-World

interview2

1).What is PHP?

PHP is a server side scripting language commonly used for web applications

2).How to include a file to a php page?

we can include a file using “include() ” or “require()” function with as its   parameter..

3).What’s the difference between include and require?

If the file is not found by require(), it will cause a fatal error and stop the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.

4).How do you define a constant?

-Using define() directive, like define (“MYCONSTANT”,150)

5).What Is a Session?

It can be used to store information on the server for future use

6).what is the definition of a session?

A session is a logical object enabling us to preserve temporary data across multiple PHP pages.

7).How to initiate a session in PHP?

The use of the function session_start() lets…

View original post 1,209 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s