Understanding PHP basics
From Leechfinger
Get PHP info
<?php
phpinfo();
?>
Let's write our first PHP code.
<?php
echo "Hello from PHP";
?>
Storing values in a variable
<?php
$myName = "Kooka";
$friendsName = "Loopa";
echo "<p>I am $myName and I have a friend called $friendsName.</p>";
?>
Display errors
Insert the following two lines at the top of your scripts to display errors.
error_reporting( E_ALL );
ini_set( "display_errors", 1);