An Introduction to…

PHP!

PHP, (originally standing for Personal Home Page Tools), stands for PHP: Hypertext Pre-processor.

It is a computer scripting language, originally designed for producing web pages. Having evolved to include a command line interface capability, it can be used in standalone graphic applications (a type of user interface). Created by Rasmus Lerdof in 1995, it was released under the PHP License, where the Free Software Foundation considered it as a free and acceptable piece of software. The Free Software Foundation is a non-profit corporation, supporting the free software movement in prompting the universal freedom to distribute and modify computer software without restriction.

PHP is a widely used general purpose scripting language, especially suited for web development and can also be embedded into HTML, (the predominant language I have constructed my previous WebPages with in the past).

It generally runs on a server, using a PHP input code with an output consisting of viable web pages that may be viewable worldwide. It can be deployed on most web servers and on almost every operating system and platform, free of charge.

Being fairly new to the concept of PHP, I was interested in understanding how it may well be beneficial for use with the design of my website on music news and culture. As I have a fairly precise knowledge on the use of HTML, I wondered if it may be possible to embed PHP into a regular HTML document.

After some reading around on the Internet, I discovered a very helpful source that explains how to do so:

http://www.onlamp.com/pub/a/php/2001/05/03/php_foundations.html

Considering my website will be constructed through the use of HTML and the incorporation of RSS feeds, it may well be ideal in using PHP to help enhance the final outcome and design of my site.

Below is an example of PHP embedment in HTML:

An introductory example

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Example</title>
</head>
<body>

<?php
echo "Hi, I'm a PHP script!";
?>

</body>
</html>

(Taken from: http://php.net/manual/en/introduction.php)

I discovered how PHP is mainly focused on server-side scripting, enabling the possibility to 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. This is the most traditional and main target field for PHP. The PHP parser (CGI or server module), a web server and a web browser allow this to work.
  • Command line scripting. It is possible to make a PHP script to run it without any server or browser. You only need the PHP parser to use it this way.
  • Writing desktop applications, (although not recommended as I am not too familiar with PHP as yet.

Hope this brief introduction to PHP has been informative! I shall complete further research at home, thus ensuring I gain a more coherent understanding on PHP, deciding whether it will be useful in using in conjuction with HTML and the design of my website.

Advertisements

1 Comment »

  1. millerlony Said:

    Its a nice details of php application, i like to your blog thanks dear by share you to all


{ RSS feed for comments on this post} · { TrackBack URI }

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

%d bloggers like this: