Jump to content

waht is the use of php in web application


Guest sandeep

Recommended Posts

PHP is a server side scripting language.This means that it performs functions and generates content on your server before the page is sent to/viewed by the user.This means, among other things, that you can generate your page content dynamically.Lets say you have a list of 12 employees. For each employee you have a picture, a name, a position, and a phone number.Without server side scripting you would need 12 pages: one for each employee. and when you wanted to change how those pages looked or functioned you would have to change 12 pages.With PHP (or other server side scripts) you can have 1 page (employees.php) and you can pass a variable representing the employee you wish to see (employees.php?emp=1)PHP can generate that page and insert the information for employee 1 (or 2 or 3...etc.)Server side scripting also removes issues of user compatibility. Where a client side script (such as javascript) requires that the user's browser be able to perform the functions, server side scripts are run on your server were you have control over what can or cannot be performed.Sorry if this is nothing but long winded. Hope it helps you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...