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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...