PHP 4

[ PHP ]

(!!! Teleportom!!!)
: fopen, msql_num_fields, socket_write ...


5.

HTML

HTML

PHP , , , PHP. PHP, , . PHP- HTML: PHP , - .

, PHP.
(<?php. . .?> <script language="php">. . .</script>) ; php.ini. ASP , , . , PHP- XML XHTML, <?php. . .?> XML.

, PHP:

5-1. HTML
1.  <?php echo("      XHTML  XML,  \n"); ?>

2.  <? echo ("  SGML- \n"); ?>
    <?=  ?>    "<? echo  ?>"
    
3.  <script language="php">
        echo ("  ( FrontPage)  
               ");
    </script>

4.  <% echo ("        ASP"); %>
    <%= $variable; #    "<% echo . . ." %>

, <?php. . .?>, , PHP , XML, XHTML.

. , . short_tags() ( PHP 3), short_open_tag PHP config-, PHP --enable-short-tags configure. php.ini-dist, .

, ASP asp_tags.

: ASP- 3.0.4.

: , PHP-, , . .

newline, . ; " " PHP-.

PHP :
5-2. Advanced escaping/
<?php
if ($expression) { 
    ?>
    <strong> .</strong>
    <?php 
} else { 
    ?>
    <strong> .</strong>
    <?php 
}
?>

, , , PHP ?>, , , . , , , PHP , echo() print() - .


php

: 3119 .

: - |  -