????????????? PHP. ??????, ???????? ????????????????

??? ?? ??????, HTML ? CSS ????????????? ??? ???????? ? ?????????? ???-???????. ?????? ????????? ??????????? ?? ????, ?? ??????? ?? ?????? ??????????. ?? ??????? ???????? ????????????? ??????? ????????? ? ??????????? (????????? ???? ????), ??? ???? ????????? ????????? ?? ?????????, ? ??????? ??????? ????? ?????????? ????????? ???? ???????. ???? ????? ??????? "??????" ? "?????", ? ??????? ??????????? ?????? ?????? ? ?????? ????? ??????????????. ??????????? ??????? ???? ???????? ???, ??????, ?????????? ????? ??????. ??????? ??????? ????????? ? ??????? ?? ??????? ???????? ????? ? ? ?????? "??????". ?????, ?? ?????? ???????? ? ?????? ????????? ????? ?????????, ???????? ?? ?? ?????? ????? ????????? ????????. ???????? ?????? ?? ?????? ? ???? "??????". ???????????? ????????? ? ???????, ?? ?????? ??? ? ???? ? ????? ?????-?? ??????, ??????, ????? ?? ???????? ???? ?? ????, ? ?????? ???????????

??? ??? ? ????????? ?????? ????? ? ????????? ???????? ? ??????? ??? ?????????? ???????????????. ???? ? ???, ??? ??? ??????? ???-??????? ? ???-??????? ????????????? ????? ???-?????? ????????? ????? ??????????????? ????????. ??? ???, ?? ?????????? ???????????? ????? ?????? ?????????? ?????????? ???? ????????. ??? ??? ?????? ??????????? ?? ???-???????, ? ??????? ???????????? ????? ???? ? ?? ???????????.

PHP ???? ?? ????? ???????????????. PHP-???????, ??????????????? ??????? ???????? PHP, ?????????, ??? ???????, ? ?????? ? ??????????? php. ??? ???-?????? ????????????? ????? ???????, ??? ??? ??????? ???????? ????? ? ??????????? php, ??? ?????????? ?? ????? ???????????? ???????? ???????, ? ??????? ?????????????? ??????????????? PHP.

PHP ???? ? ???????????????? ????? ??????????? ????:

<?php
  ...
?>

?????? ??????? ?????????????? ?????????? PHP-????. ?????? ??? ???? ??????????? ???????? ??? ????, ? ????? ????????? ?????????, ? ??????? ? ??????? ???? ?????.

?????????? ????????? ??????. ? ???????? ???????? ???-??????? ????? ???? test.php ?? ????????? ??????????:

?????? ?1
<?php
  echo "?????? ?2";
?>
?????? ?3

??? ??????? ?????? ????? ? ??????? HTTP-??????? ???-?????? ?????????, ??? ? ???? ?????????? php ? ?????? ??? ?? ????????? ?????????????? PHP. PHP ?????? ? ????? ???????????

<?php
  echo "?????? ?2";
?>

?????? ??????? ?????????????? ?????????? PHP-???? ? ?????? ??? ?????????. ???????? echo ????? PHP ??????? ????????? ???????, ???????? ??????????, ????? ? ?.?., ????????? ?? ???. ????? ?????????? ???? ??????????? ?????????? ?? ????????? ?? ?????????? (?????). ????? ???????, ?????????? ????? ?????? ???:

?????? ?1
?????? ?2
?????? ?3

??????? ????????, ??? ??? ???? ???? ????????? ??? ???? ?? ????? ?? ??????????, ??? ?????????? ? ??????????? ?????? ??? ?????????? ?????? ?? ??????.

?????????? ??? ???? ??????. ??????? ???? index.php ? ??????????:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head> 
    <title><?php echo "????????"; ?></title> 
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
  </head>  
  <body> 
    <div>??????? ????: <?php echo date('d.m.Y'); ?></div>
  </body>  
</html>

????????????? ?????? ??????? ???????????

<?php echo "????????"; ?>

?????

<?php echo date('d.m.Y'); ?>

??????? date ?????????? ???? ? ???????, ????????? ? ?????????, ??????? ???????????? ??????? ???????? echo. ?????????, ??????? ?????? ????????????, ?????????? ???????? ??? HTML-????????:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head> 
    <title>????????</title> 
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
  </head>  
  <body> 
    <div>??????? ????: 11.11.2010</div>
  </body>  
</html>

????? ???????, ?????????? ?? ????? ??????????? ??????????, ????? ?????? ????? ???????? ?????????????? ???????????, ? ????? ???????? ? ???? ?????????? ??????. ?????? ????????? ???????? ?????? ???? HTML-?????? ????? ??????? ? ??????????? php, ??? ???? ??????????? ????? ???????? ????? ???????????? ? ??????? PHP.

?????, ????????? ??????????, ??? ?????? PHP ?? ?????? ????????? HTTP. ????????, ? ??? ???? ????????? HTML-???????? (???? index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head> 
    <title>????????</title> 
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
  </head>  
  <body> 
    ??????, ???!
  </body>  
</html>

???-?????? ?????? ?????????? ????? ????? ??? ????, ??????????? ?????? HTTP-?????????. HTTP-????????? ?????? ???-??????? ?? ?????? ????? ?????:

HTTP/1.1 200 OK
Date: Mon, 11 Nov 2010 12:01:48 GMT
Server: Apache/2.2.17
Last-Modified: Mon, 11 Nov 2010 12:01:34 GMT
Accept-Ranges: bytes
Content-Length: 343
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

??????? ?????????? ????? ? html ?? php, ? ??????

??????, ???!

??????? ?? PHP-???????????

<?php echo "??????, ???!"; ?>

?????? ???-?????? ????? ???????? ??? ???????? ?? ????????????? PHP. ????????, ??? ???? HTTP-?????? (??? ????????) ?????? ???????? ????? ??. ???????? ?? ????????? HTTP-??????:

HTTP/1.1 200 OK
Date: Mon, 11 Nov 2010 12:02:50 GMT
Server: Apache/2.2.17
X-Powered-By: PHP/5.3.4
Content-Length: 343
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

????? ?? ???????? ?????????? ??????? ????????? ????????? X-Powered-By. ???? ?????????? PHP ??????? ???? ????, ??? ?? ???????????? ? ????????? ???????? (??? ??????????? ????? ?????????).

? ?????? ?? ????????? ?????? ???-?????? ?????????? HTTP-????????? ??????? ??????????????? ????? ??????? ? ????????? ???????????. ????? ?? ??????????? ????????????? ??????????????? PHP, ????????? ???????????? ?? ?????, ? ?????? ????? ?????? ??????? (?????? ???? ???? HTTP-??????). ???? PHP ???????? ????????????? HTTP-????????? ????????????? ??????, ??? ?????? ???????? ??????????? ???????????? (???? ????? ? ?????? ??????). ????????, ??? ????????? ???????? ????????????? ?????? ?? ?? ???????? ???????, ?? ???? ?? ??????? ??????. ?????? ????? ????? ??????????????:

  • ????????? ????? ????? ???????????? PHP:

    <span>?????? ?????</span>
    <?php /* ????? ????????? ????????????? ??????????, ?.?. ??? ??? ???? ?????????? ???????. ???????? ????????????? ????? ???? */ ?>

    ????? ????????, ??? ???? ?????? ?????? ????? ???????????? PHP ???????????? ???????? HTTP-??????????.

  • PHP-???????? ??? ???????, ????????? ???-????:

    <?php
      echo "hi";
      /* ????????? ?????????? */
    ?>
  • ??? ???? ???????????????? ??????, ????? ????????? ???????????? ????? ????, ??? ????????????? PHP ??????? ?????-???? ?????????????? (???? ??? ????? ????????):

    <?php
      $id++; // ???????????? ????? ?????????????? ? ???, ??? ?????????? $id ?? ????????????????, ??? ???????? ?? ????? ???????? ??????????
      /* ????????? ?????????? */
    ?>

?????? ?????, ?????????? ? ?????? ????????, ??????? ????????? ??? ? ???? ?? ???????, ?? ????? ?????, ? ?????, ???????.

? ?????? ???????? ?????? ?????????????? HTTP-?????????? ? ??????? PHP. ????????, ?????????? ??????????? CSS-???? ? ??????? PHP. ?????????? ????? style.php:

<?php
  $darkcolor = "#003300";
  echo ".navi { background: $darkcolor }";
  echo ".left-drop { border: 1px solid $darkcolor }";
?>

??????? ???? ????????, ??? ??? ?????? CSS-????, ??? ????? ????????????? ????????? Content-Type ?? ????????? text/css ? ??????? ??????? header:

<?php
  header("Content-Type: text/css");
  $darkcolor = "#003300";
  echo ".navi { background: $darkcolor }";
  echo ".left-drop { border: 1px solid $darkcolor }";
?>

?????????????? ??????????????? ?????????? ???????????? ? ???????? HTTP-?????????? ?????????? ??????? header ???????? ??? ????? ???? ? ????, ???? ?????????????? ??????????? ????????? ??????.

??? PHP ????? ???????? ??? ????? ? ?????, ?? ?? ????, ???????, ???????????. ? ????????? ????????? ? ???????? ??? ?????????? ? ????????? PHP ??? ?????? ? ????? ???-????????.

Комментарии

Оставить комментарий »

 
Charlesinife
4 января 2018, 13:24
 

wh0cd554225 <a href=http://buyviagra.services/>viagra</a> <a href=http://augmentinantibiotic.shop/>generic augmentin prices</a> <a href=http://dapoxetine.fun/>dapoxetine online pharmacy</a> <a href=http://femaleviagra.fun/>buy female viagra uk</a> <a href=http://tretinoin.fun/>tretinoin cream</a> <a href=http://prednisoneonline.store/>prednisone on line</a> <a href=http://toradol10mgprice.store/>toradol 10mg price</a> <a href=http://erythromycin.services/>erythromycin</a> <a href=http://lotrisone.fun/>lotrisone</a> <a href=http://buyviagra.fun/>viagra cost</a>

AlfredOnest
4 января 2018, 13:38
 

wh0cd2972205 <a href=http://elimitecream.shop/>elimite</a>

AaronElelm
4 января 2018, 16:54
 

wh0cd2488609 <a href=http://strattera.services/>atomoxetine strattera</a> <a href=http://cafergotonline.shop/>buy cafergot online</a>

Michaelsnity
4 января 2018, 20:14
 

wh0cd1037821 <a href=http://cleocingel.us.com/>Cleocin Hcl 300 Mg</a> <a href=http://buystrattera.us.com/>strattera cost</a> <a href=http://tadalis.us.org/>Buy Tadalis</a> <a href=http://buycleocingel.us.com/>cleocin</a> <a href=http://buyalli.us.com/>ALLI PILL</a> <a href=http://buyprednisolone.us.com/>prednisolone tablets</a> <a href=http://buytorsemide.us.org/>torsemide tablets</a> <a href=http://buytadalissx.us.org/>tadalis sx online</a>

Michaelsnity
4 января 2018, 20:24
 

wh0cd1037821 <a href=http://buystrattera.us.com/>strattera</a> <a href=http://buyalli.us.org/>Alli Prescription</a> <a href=http://buytorsemide.us.com/>torsemide brand name</a> <a href=http://buycelexa.us.com/>our site</a> <a href=http://buypaxil.us.com/>paxil</a> <a href=http://tetracycline365.us.com/>view homepage</a> <a href=http://buycelebrex.us.com/>celebrex</a>

Loans
6 января 2018, 23:58
 

payday <a href="https://payday.us.com">payday</a> direct lenders <a href=https://payday.us.com>payday loan</a>

JasonClien
11 января 2018, 1:21
 

viagra http://viagrarrr.com
<a href=http://viagrarrr.com>viagra</a>
<a href="http://viagrarrr.com">viagra</a>
cialis http://cialisrrr.com
<a href=http://cialisrrr.com>cialis</a>
<a href="http://cialisrrr.com">cialis</a>
buy viagra http://viagrarrr.com
<a href=http://viagrarrr.com>buy viagra</a>
<a href="http://viagrarrr.com">buy viagra</a>
buy cialis http://cialisrrr.com
<a href=http://cialisrrr.com>buy cialis</a>
<a href="http://cialisrrr.com">buy cialis</a>

Janedraix
12 января 2018, 9:02
 

essay writing service <a href="https://essaywritingservice.us.org">assignment essay help</a> paper writing service <a href=https://essaywritingservice.us.org>essay writing service</a>

Spotloan
14 января 2018, 11:36
 

payday loans online <a href="https://loan.us.org">loan</a> payday loan <a href=https://loan.us.org>cash loans</a>

Loans
20 января 2018, 22:39
 

personal loan reviews <a href="https://paydayloansonline.us.org">payday loans no credit check same day</a> first payday loan <a href=https://paydayloansonline.us.org>no credit check payday loans instant approval</a>

Оставить комментарий

Ваше имя
 
Ваш e-mail
 
Комментарий