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.
echo ” A simple PHP script !”;
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.
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
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 Apache, MySQL, and PHP on your operating system (Windows in the case of WAMP). WAMP is used for Windows, while LAMP – for Linux based operating systems.
- “W” stands for Windows, there’s also LAMP (for Linux) and MAMP (for Mac).
- “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.
- “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.
- “P” stands for PHP. It’s the programming language. PHP is running in conjunction with Apache and communicating with MySQL.