Task One - Hello World - PHP Tutorial
- Make a folder for the programs you are going to create. You need write permission
on this folder.
- Run PhpIde.exe and type in your first program.
- Save the file into your new folder as 01hello.php.
- Press the F9 key to run the program.
- Press the F1 key to see the PHP manual.
- Press the F2 key to see the PhpIde help file.
Here is the program code ...
<?php
echo "\n\nHello World!\n\n";
// This is the "Hello World" application.
// These are comment lines
// Save this file as 01hello.php
//
// echo is used for TEXT OUTPUT.
// It is like "print" in BASIC and
// "writeln" in Pascal and printf in "C".
//
// \n has a special meaning. It means "start a new line".
?>
|
- It is very inconvenient if Windows is hiding file extensions for known file
types.
This feature should be turned off in Windows Explorer -> Tools->Folder
Options.

Learning Task
Write a more complex version of this program to display several lines
of text and get control of the text layout by using space characters.
|