PHP .

atinform.com. .

PHP

  // 7 2003

  .  - , - .  . , , , XML, XHTML   X,    ,  .

,  ,   html.   ,   . , ,   .   -  , , , .

PHP (, !) ,  html. . , :   : echo "<b>".$boldtext."</b>";  ,   , .

 ? html-, ,  : , html-,   , , , , ,   / .

, - :

<html>
<title>[TITLE]</title>
<body>
[TEXT]
</body>
<html>

, [TITLE], , , [TEXT]  , .

 .   .   . !   . , - ( ) :

$page = str_replace ("[TITLE]", $title, $page);
$page = str_replace ("[TEXT]", $text, $page);

  . ,   . ! , : [TEXT] , , , , , , .   - . PHP.   SMARTASS (Super Mega And Revolutionary Totally Automatized Shablon System).

, , ,  , .

    ,     .   , PHP,  html-   (html-) .

.   PHP, PHP. . .

    .

<html>
<title>[TITLE]</title>
<body>
[TEXT]
</body>
<html>

?   .

<html>
<title><?=$title?></title>
<body>
<?=$text?>
</body>
<html>

? . , text  <?=$text?>.  ,   , echo.   .

php- , :


<?php
$text = " ";
$title = " ";
?>

<html>
<title><?=$title?></title>
<body>
<?=$text?>
</body>
<html>

  .   .   :


<?php
$text = " ";
$title = " ";
include "template.html";
?>

?   php-  .   html-,   <?=$_?>.

 ,   , 35   PHP.   - , .

  ?

<html><title><?=strtoupper($title)?></title>
<body>

<? if ($text==""): ?>
, .

<? else: ?>
: <b><?=$text;?></b>

<? endif; ?>

</body>
</html>

  . . PHP.

, ,  .

PS. . 95% . -   , .

 







, , ( , + ). !

: www.wr-script.ru, 2004-2024.

. WR-Script.ru!

WEB-

WR-Счётчик