Introduction to PHP (beginners)
The main aim of this blog category is to teach you the basics of PHP, by the time I have finished my posts you will be able to use your new found knowledge and build yourself your first basic content management system and to give you an insigt into building applications with PHP, the further we progress, the more complex things will get so if you are a PHP beginner then it might be a good thing to start atthe beginning.
Basic Page Layout
PHP allows you to embed commands into HTML pages and wrapped around these commands must always be special start and end tags:
<?php // Some PHP code here ?>
Now we know how to embed PHP into a HTML page, lets se a sample of this in action:
<html> <head>PHP Test Page</head> <body> <p>Jack is wearing green trousers</p> <?php echo '<p>Jill is wearing a blue skirt</p>'; ?> </body> </html>
Feel free to save this script to your server and test it out.
You will see by the diagram that we have just created our first PHP script!
No related posts.

