SugarCRM/PHP

PHP , HTML

onesixx 2013. 1. 24. 10:21
반응형

http://www.ntchosting.com/php/php-in-html.html

 

PHP in HTML HTML in PHP  

<html>
    <head>
    </head>
    <body >
        Hello, today is
        <?php echo date('l, F jS, Y'); ?>.
        <br>

        <ul>
            <?php
                for($i=1;$i<=5;$i++){
                ?>
  <li>Menu Item <?php echo $i; ?></li>
                <?php
                }
            ?>
        </ul>
    </body>
</html>

<?php
echo "<html>";
echo "<head></head>";
echo "<body>";
echo "Hello, today is ";
echo date('l, F jS, Y');

//other php code here

echo "</body>";
echo "</html>";
?>

<?php
echo "<html>
      <head>
      </head>
      <body >
         Hello, today is ";
echo date('l, F jS, Y');
//other php code here

echo "</body>
      </html>";
?>

반응형

'SugarCRM > PHP' 카테고리의 다른 글

php 비교연산자  (0) 2013.05.06
Callback 함수란?  (0) 2013.05.06
[PHP] 열린 문서의 절대경로, 상대 경로, URL, URI 나타내기  (0) 2013.02.01