PHP Introduction

PHP scripts are executed on the server.

The basic knowledge you should possess

Before you continue learning, you should have a basic understanding of the following knowledge:

  • HTML
  • CSS
  • JavaScript

If you want to learn these projects first, please visit our Home page Access these tutorials.

What is PHP?

  • PHP is an acronym for "PHP Hypertext Preprocessor"
  • PHP is an open-source scripting language widely used
  • PHP scripts are executed on the server
  • PHP is free of cost and can be downloaded and used for free

PHP is a stunning popular language!

  • It is powerful enough to become the core of the largest blog system on the Internet (WordPress)!
  • It is profound enough to run the largest social networks (facebook)!
  • And its ease of use is enough to make it the preferred server-side language for beginners!

What is a PHP file?

  • PHP files can contain text, HTML, CSS, and PHP code
  • PHP code is executed on the server and the result is returned to the browser as plain text
  • The file extension of PHP is ".php"

What can PHP do?

  • PHP can generate dynamic page content
  • PHP can create, open, read, write, delete, and close files on the server
  • PHP can receive form data
  • PHP can send and retrieve cookies
  • PHP can add, delete, and modify data in the database
  • PHP can limit user access to certain pages on the website
  • PHP can encrypt data

With PHP, you are not limited to outputting only HTML. You can also output images, PDF files, even Flash movies. You can also output any text, such as XHTML and XML.

Why use PHP?

  • PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
  • PHP is compatible with almost all servers (Apache, IIS, etc.)
  • PHP supports various databases
  • PHP is free. Please download from the official PHP resources:www.php.net
  • PHP is easy to learn and can run efficiently on the server side