Randome qstns Flashcards
php advtgs?
- Easy and Simple to Learn
- Cost-Efficient
- Platform Independent
php is ‘Cost-Efficient’, how?
PHP is an open-source web language, hence is completely free.
php is ‘Easy and Simple to Learn’ , how?
- 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.
php is ‘Platform Independent’ , how?
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.
What is PEAR in php?
- 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 to increase PHP execution time?
Set the value for max_execution_time in file.
max_execution_time = 300
Why use output buffering in PHP?
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
What is php session
- way to preserve data
- user info used over multiple pages.
session_start() & session_destroy() ?
session_start() - creates & resumes(current) sessions.
session_destroy() - destroys all session variables.
Session vs. Cookies
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.