How To Embed PHP With The HTML?

Posted under PHP by wopll on Friday 27 February 2009 at 5:26 pm

Let’s write our first php program with hello world to simply show how we can embed the html with the php code. To embed the php code within the body of the html is very simple.

<HTML>

<HEAD>

My first <a class=”zem_slink” href=”http://php.net/” title=”PHP” rel=”homepage”>PHP</a> program

</HEAD>

<BODY>

<?php

print(“Hello, beautiful world<BR><BR>\n”);

phpinfo();

?>

</BODY>

</HTML>

Zemanta Pixie

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Copyright © 2010 blog.wopll.com. WP Theme created by Web Top.