diff --git a/php/lesson1/assets/images/helloworld.png b/php/lesson1/assets/images/helloworld.png new file mode 100644 index 00000000..2a86f1b1 Binary files /dev/null and b/php/lesson1/assets/images/helloworld.png differ diff --git a/php/lesson1/tutorial.md b/php/lesson1/tutorial.md new file mode 100644 index 00000000..7ce5802a --- /dev/null +++ b/php/lesson1/tutorial.md @@ -0,0 +1,85 @@ +--- +layout: page +title: Introduction to PHP +--- + +##### Requirements + +* 15 minutes +* PHP installed - this is by default on most Operating Systems. But if not, here are the official [installation instructions](http://php.net/manual/en/install.php) + * Check installation by running the following command in cli `php -v`, this should output the version, eg. **5.5.9** + +##### Achievements + +By the end of this tutorial you will be able to: + +* write a **Hello World** Application that outputs on the: + * Command Line (CLI) + * Browser + +--- + +## What is PHP? + +From the **PHP** [website](http://php.net/manual/en/intro-whatis.php) + +> PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. + +Well what does this mean? It is very easy to build dynamic websites using **PHP** as the server-side language, which generates **HTML**. + +## What does PHP look like? + +A simple Hello World application would look like the following: + +*File: index.php* +```php +