????????????? 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 ??? ?????? ? ????? ???-????????.

Комментарии

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

 
KennethSpern
19 сентября 2017, 11:11
#71
 

<a href=http://cialis365.us.com/>order cialis</a>

AlfredOnest
19 сентября 2017, 12:30
#72
 

<a href=http://bupropionsr150mg.us.org/>bupropion</a>

Charlesinife
19 сентября 2017, 15:00
#73
 

<a href=http://buytadalis.store/>buy tadalis</a> <a href=http://allopurinol.reisen/>buy allopurinol online</a> <a href=http://doxycycline100mg.pro/>doxycycline</a> <a href=http://tadalis-sx.store/>buy tadalis sx</a>

AaronElelm
19 сентября 2017, 18:05
#74
 

<a href=http://trazodone247.us.com/>trazodone</a> <a href=http://cialispills.us.org/>cialis pills</a>

Michaelsnity
19 сентября 2017, 18:45
#75
 

<a href=http://cymbaltageneric.us.org/>cymbalta generic</a>

Charlesinife
19 сентября 2017, 19:27
#76
 

<a href=http://cymbaltageneric.us.org/>cymbalta duloxetine hcl</a> <a href=http://hydrochlorothiazide12.us.org/>Hydrochlorothiazide Visa</a> <a href=http://cephalexin250mg.us.org/>cephalexin 250 mg</a>

Michaelsnity
19 сентября 2017, 20:42
#77
 

<a href=http://amoxil.news/>brand amoxil online</a>

AaronElelm
20 сентября 2017, 2:51
#78
 

<a href=http://cymbaltageneric.us.org/>generic cymbalta</a>

AaronElelm
20 сентября 2017, 6:08
#79
 

<a href=http://colchicine247.us.com/>Generic Colchicine</a> <a href=http://cephalexin250mg.us.org/>cephalexin pills</a> <a href=http://cipro247.us.com/>Cipro Buy Online</a>

Charlesinife
20 сентября 2017, 7:45
#80
 

<a href=http://buymethotrexate.shop/>related site</a>

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

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