Today we will start our first program but we must have a little knowledge of html, some basics things that's all, so let's go
Always the php code start with this tag <?php and ended with this one ?>
Now let's write some php sample programs
Open the editor and write this code
<?php
echo "HELLO WORLD" ;
?>
Save the file in www folder, you will find it in appserv folder, the name of file should be name.php
Open your navigator and write localhost
After localhost /name.php you should see HELLO WORLD
echo: this is an order that tells php compiler to show some thing we want
We can use ' instead of " but just in this case we will talk about the difference between them later
In the next lesson we will talk about variables in php and write other php sample programs.
have a good time
No comments :
Post a Comment