Question & Answers-Set-1

Posted: February 2, 2010 in Uncategorized

What is htaccess ?

htaccess stand for “hypertext access”.It is the default name

of a directory-level configuration file that allows for

decentralized management of web server configuration.

Common usage are Authorization, Authentication, URLs

Rewriting ,Blocking ,Customized error responses,MIME types ,

Cache Control and Directory listing ,etc

What’s PHP ?

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.

What Is a Session?

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.

What is meant by PEAR in php?

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”

How can we repair a MySQL table?

The syntex for repairing a mysql table is:

REPAIR TABLE tablename



This command will repair the table specified.

If QUICK is given, MySQL will do a repair of only the index tree.

If EXTENDED is given, it will create index row by row.
What is the difference between $message and $message?

$message is a simple variable whereas $message is a reference variable. Example:

$user = ‘me’

is equivalent to

$holder = ‘user’;

$holder = ‘me’;

What Is a Persistent Cookie?

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 cannot 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.


Leave a Reply

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

You are commenting using your 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