Another PHP tutorials

August 8th, 2008 by admin

To escape php from html, a PHP code block starts with “<?php” and ends with “?>”. A PHP code block can be placed anywhere in the HTML document. You may also use <? ?> but it’s not available on every servers.

To separate instructions, each instruction must end with a semicolon. The PHP closing tag also implies the end of the instruction.

This is an example on how to write PHP between html tags:

<html>

<head>

<title>PHP is fun</title>

</head>

<body>

<?php echo “This text is generated using PHP”; ?>

</body>

</html>

Tags: ,

An introduction to PHP

August 7th, 2008 by admin

PHP stands for Hypertext Preprocessor”, it is a server-side, HTML embedded scripting language used to create dynamic Web pages.

Most of it’s syntax is borrowed from C, Java and Perl with some unique features thrown in. What is the goal of this programing language? The answer is to allow Web developers to write dynamically generated pages quick.

How to write php ? Millons of softwares are available to help you write PHP. You may use Dreamweaver, notepad, notepad++ and netbeans php early access.

Tags: ,