PHP(a server scripting language)

Uncategorized

PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world. PHP 7 is the latest stable release.

For Example:

<html>
<body>

<?php
echo ” A simple PHP script !”;
?>
</body>
</html>

 

PHP is a recursive acronym for “Hypertext Pre-processor”. PHP files have extension “.php”. PHP is a server-side scripting language that is embedded in HTML. It is used to manage dynamic content, databases, session tracking, even build entire e-commerce sites. It is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.

PHP files can contain text, HTML, CSS, JavaScript, and PHP code.PHP scripts are executed on the server, and the result is returned to the browser as plain HTML

Applications of PHP

  • PHP can generate dynamic page content
  • PHP can create, open, read, write, delete, and close files on the server
  • PHP can collect form data
  • PHP can send and receive cookies
  • PHP can add, delete, modify data in your database
  • PHP can encrypt data

 

PHP Installation:

To run PHP, we need three components to be installed on computer

  • install a web server
  • install PHP
  • install a database, such as MySQL

or Install WAMP (Windows Apache Mysql PHP) server

WAMP is an acronym that stands for Windows, Apache, MySQL, and PHP. It’s a software stack which means installing WAMP installs ApacheMySQL, and PHP on your operating system (Windows in the case of WAMP). WAMP is used for Windows, while LAMP – for Linux based operating systems.

  1. W” stands for Windows, there’s also LAMP (for Linux) and MAMP (for Mac).
  2. A” stands for Apache. Apache is the server software that is responsible for serving web pages. When you request a page to be seen by you, Apache grants your request over HTTP and shows you the site.
  3. M” stands for MySQL. MySQL’s job is to be the database management system for your server. It stores all of the relevant information like your site’s content, user profiles, etc.
  4. P” stands for PHP. It’s the programming language. PHP is running in conjunction with Apache and communicating with MySQL.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *