Exploring the PHP Enviornment, HTML Embedding

PHP – Exploring the PHP Environment – HTML Embedding:


PHP is embedded within xhtml pages within the tags:  <?php … ?>

The short version of these tags can also be used: <? … ?>

Each line of PHP is terminated with a semi-colon.



print  ‘hello World!’;


HTML  Embedding:


<html><head><title>PHP PAGE</title></head>


<table width=1000px border=25 bordercolor=#2267c6 cellpadding=6 cellspacing=6 height=200px align=center>

<tr><td><marquee>ITs a TEST Page</marquee></td></tr>

<tr><td><?php echo "test page";?></td></tr>

<tr><td><?php echo "<tr><td>final <br>page</td></tr>";?>

<tr><td><img src="DSC04359.jpg" height=500px></td></tr>


Custom Search

%d bloggers like this: