Cazpa.com PHP Developer & Website Designer

7Nov/090

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.

About Daniel Smith

I am the boss around here, if you need anything then send me a message :))

Popular Content & Keywords

depositfiles hack,add update delete in php,warning: mail() [function mail]: smtp server response: 554 the message was rejected because it contains prohibited virus or spam content in,php tutorial deutsch,php define variable,,rails vs php performance,php add update delete,add update delete records from sql server using php,warning: mail() [function mail]: smtp server response: 554 the message was rejected because it contains prohibited virus or spam content,tutorial create contact form in dreamweaver php,ruby on rails vs php 2010,php tutorial // user registration w/ sql,send emails with a web form: php scripting,
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

You must be logged in to post a comment.

No trackbacks yet.

Powered by WordPress Lab