WordPress Word: PHP

PHP is a recursive acronym for Hypertext Preprocessor. Its main focus is server side scripting which is specifically suited for web developers to write dynamic pages quickly.
PHP Manual – What is PHP?

How Does PHP Work?

When someone visits your PHP webpage, your web server processes the PHP code. It then determines which parts it needs to show to visitors. This includes content and pictures and hides file operations.  Then translates your PHP into HTML. After it translates into HTML, this sends the webpage to your visitor’s web browser. This means that PHP is a powerful behind the scenes scripting language that your visitor’s wont see.

All WordPress sites use PHP to process the data and generate a web page. Code snippets created with PHP, JavaScript, and other web programming languages used in the core of WordPress for redundant and frequently accessed programming are called Template Tags.

The simple PHP example below shows how the code is enclosed in special start and end syntax instructions using the <?php to the closing ?>.  This reduces the amount of html commands being used and also reduces the time it takes for a user to create a website.

Example #1

PHP code

The following is an example of the WordPress Loop, a PHP script that is the underlying engine behind a WordPress site:

Useful Ways To Use PHP

  • Create a username/password login page
  • Create forums
  • Create picture galleries
  • Surveys

Resources

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s