Randome qstns Flashcards

1
Q

php advtgs?

A
  1. Easy and Simple to Learn
  2. Cost-Efficient
  3. Platform Independent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

php is ‘Cost-Efficient’, how?

A

PHP is an open-source web language, hence is completely free.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

php is ‘Easy and Simple to Learn’ , how?

A
  1. Easy and Simple to Learn
    PHP is considered one of the easiest scripting languages. Compared to other web languages, PHP doesn’t require a manual or intensive studying. PHP syntax is logical and well-organized. Even command functions are easy to understand, as they tell the developer what function they perform. As a result, web developers find it very easy to create and optimize the application.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

php is ‘Platform Independent’ , how?

A

Platform Independent
PHP is mainly supported by all the operating systems like Windows, Unix, Linux etc. The PHP based developed web applications can be easily run on any platform. It can be integrated with other programming language and database easily and there is no requirement of re-development. It helps in saving a lot of effort and cost.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is PEAR in php?

A
  • PEAR = The PHP Extension and Application Repository, or
  • PEAR is a repository of PHP software code.
  • Is a system used for code distribution and package maintenance.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to increase PHP execution time?

A

Set the value for max_execution_time in file.

max_execution_time = 300

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why use output buffering in PHP?

A

Output buffering is a way to tell PHP to hold some data before it is sent to the browser.
- This o/p data is stored in a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is php session

A
  • way to preserve data

- user info used over multiple pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

session_start() & session_destroy() ?

A

session_start() - creates & resumes(current) sessions.

session_destroy() - destroys all session variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Session vs. Cookies

A

Session :-
A session stores the variables and their values on the server.
The session ends when the user logout from the application or closes his web browser.
- store an unlimited amount of data.

Cookies :-
Cookies are stored on the user’s computer as a text file.
- lifetime = set by the user.
= store limited data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly