PHP: Hypertext Preprocessor

What is PHP ?

PHP Stands for "Hypertext Preprocessor." (It is a recursive acronym, if you can understand what that means.) PHP is an HTML-embedded Web scripting language. This means PHP code can be inserted into the HTML of a Web page. When a PHP page is accessed, the PHP code is read or "parsed" by the server the page resides on.

PHP is a general-purpose scripting language that is especially suited to server-side web development, in which case PHP generally runs on a web server. Any PHP code in a requested file is executed by the PHP runtime, usually to create dynamic web page content or dynamic images used on websites or elsewhere.

PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or send and receive cookies. But PHP can do much more. There are three main areas where PHP scripts are used. Server-side scripting.

PHP is a scripting language that is often used to develop a variety of web pages and Internet applications. Files that have the .php extension can contain text, HTML tags and scripts. These files are processed by a remote server and are then returned to the user's Web browser as plain HTML.

How do you open a PHP file?

  • Download a code editor if you don't already have one. Code editors are text editing programs that allow you to write code or scripting languages..
  • Install a code editing software...
  • Right-click on the PHP file and select “Open with.”
  • Make your software the default for PHP files.

When you save the file, name it test.php (just as an example, any valid file name with .php in the end will work). Then, go to XAMPP installation folder (typically, C:\xampp ) and run xampp-control.exe by double clicking it. In the xampp-control window, click the start button beside Apache.

Erica Assignment

© 2017 Terms and Conditions | All Rights Reserved.