PHP: Hello World-script
By Kristoffer BohmannBasic Hello World-script for starters.
Basic Hello World-script:
<?php
$myvar = "Hello World!";
echo $myvar;
?>
Output:
Hello World!
Save the script as hello.php in your the root folder on your PHP server, and view the script by browsing to your web server (example: http://localhost/hello.php).
