What is PHP?

  • PHP stands for Hypertext Pre-processor

  • PHP is an acronym for "PHP: Hypertext Preprocessor"

  • PHP is a widely-used, open source scripting language

  • PHP is a server side scripting language that is embedded in HTML. that is used to develop Static websites or Dynamic websites or Web applications

  • PHP is free to download and use

Learn about PHP File?

  • PHP files have extension ".php" when we save php file then use “.php” extension

  • PHP files can contain text, HTML, CSS, JavaScript, and PHP code

  • PHP code are executed on the server, and the result is returned to the browser as plain HTML

  • PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) It is compatible with almost all servers used today (Apache, IIS, etc.)

What Can PHP Do?

PHP is mainly focused on server-side scripting, so you can do anything

  • It can collect form data

  • It can generate dynamic page content

  • It can create, open, read, write, delete, and close files on the server

  • It can add, delete, modify data in your database

  • It can send and receive cookies

  • It can be used to control user-access

  • It can encrypt and decrypt data

 

There are three main areas where PHP scripts are used.

  1. Server-side scripting

  2. Command line scripting

  3. Writing desktop applications.