What is: PHP?

PHP is a computer programming. WordPress is written entirely in PHP and all of the functionality in a WordPress site comes from PHP.

PHP was created in 1995 and stands for “hypertext preprocessor” although it is always referred to just as PHP. Technically, PHP is a scripting language, meaning that is specifically designed to sit on a web server and then deliver information.

PHP only became standardized in 2014, but its relatively simple structure has made it a powerful tool for websites.

Why and When to Use PHP

PHP is very popular for web development because:

  • It can interact with databases, like saving user information.
  • It works well with HTML, the basic language of webpages.
  • It runs on the server, so users don’t see the PHP code on your page.
  • If you want to build a website that does more than just show information, like a blog or a shop, PHP is a great choice!

The benefit of using PHP versus standard HTML alone is that PHP allows websites to display content dynamically, i.e. automatically updated on the fly rather than having to modify a static HTML page with new content every time you want to make a change.

If you’re new to WordPress and don’t want to do any developing, then you won’t need to understand how PHP works or write anything in the PHP language. You can use, run, and manage your WordPress site without ever having to learn PHP.

For developers, however, anything you can create for a WordPress site, including themes, widgets, plugins and customized commands, are all written in PHP.

When you install WordPress, you’ll see a number of PHP files in your home directory, identified by having the “.php” extension. Keep in mind, however, that PHP commands can also be contained and executed from inside HTML files.

Why Learn PHP?

PHP is a relatively simple programming language, so it isn’t particularly hard to learn. If you want full control over your WordPress website, the three different things you will need to learn are PHP, HTML, and CSS as these determine everything about how your website operates, what content is displayed, and how the content looks and is arranged.

Useful resources about PHP

The following two tabs change content below.

Jamie Spencer

My name is Jamie Spencer and I have spent the past 10 years building money making blogs. After growing tired of the 9-5, commuting and never seeing my family I decided that I wanted to make some changes and launched my first blog. Since then I have launched lots of successful niche blogs and after selling my survivalist blog I decided to teach other people how to do the same.