#Hello World in PHP

<div class="text-success lead">
PHP is a widely used, general-purpose scripting language that was originally designed for web development 
to produce dynamic web pages. For this purpose PHP code is embedded into the HTML source document and 
interpreted by a web server with a PHP processor module, which generates the web page document.
</div>

<img src="./php.jpg"/>

##Hello world example

This is the "Hello world !" source code basic example.


<pre class="prettyprint">
&lt;? echo &quot;Hello World !&quot; ?&gt;
</pre>

Save it with in <b>/var/www/hello.php</b> file then run it opening your browser on board IP using this URL:

<pre class="prettyprint">
http://&lt;fox_board_ip_address&gt;/hello.php
</pre>

##Installation

PHP and Lighttp web server are already installed by default on the [Arietta](/arietta) 
bootable Debian Linux microSD.
 
If you need to install it on a new distribution use these commands:

<pre class="prettyprint">
~# apt-get update
~# apt-get install php5
</pre>

See the <a href="./phpinfo.html" target="_blank">phpinfo()</a> output generated by the default PHP installation.

##Related links

<ul>
<li><a href="http://www.php.net/">Official Website</a></li>
<li><a href="http://www.php.net/manual/en/">Documentation</a></li>
<li><a href="http://en.wikipedia.org/wiki/Php">Wikipedia definition of PHP</a></li>
</ul>

