Friday, September 10, 2010

Synatx for PHP

We start php with symbol <? and end with with ?>.
Let us look how to write a simple php to print your name
first you need to write html

<html>
<body>

<?
echo "This is to show how to print";
?>

</body>
</html>

here echo is the function to print to screen in php.save this code as leason1.php and run on your server

0 comments:

Post a Comment

 

Blogroll

Site Info

Text

Free PHP Scripts Copyright © 2009 WoodMag is Designed by Ipietoon for Free Blogger Template